Skip to content

Commit 47df2b4

Browse files
committed
added docmentation in os.test.py
1 parent d19b6fb commit 47df2b4

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

os/os.test.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
import os
22

3-
print("os.error: ", os.error)
3+
print("os.error:", os.error) # prints <class 'OSError'>
44
print()
5-
print("$HOME: ", os.environ.get("HOME")) # prints $HOME variable
5+
print("$HOME:", os.environ.get("HOME")) # prints $HOME variable
66
print()
7-
print("cwd():", os.getcwd())
7+
print("cwd():", os.getcwd()) # prints current working directory
88
print()
9-
print("chdir():", os.chdir(os.environ.get("HOME")))
9+
print("chdir():", os.chdir(os.environ.get("HOME"))) # changes the current working directory to $HOME
1010
print()
11-
print("cwd() after chdir():", os.getcwd())
11+
print("cwd() after chdir():", os.getcwd()) # should print $HOME dir
1212
print()
13-
print("getenv(\"HOME\"):", os.getenv("HOME"))
13+
print("getenv(\"HOME\"):", os.getenv("HOME")) # should print $HOME dir

0 commit comments

Comments
 (0)