Damien George
4 years ago
2 changed files with 27 additions and 0 deletions
@ -0,0 +1,23 @@ |
|||
# Test for VfsPosix |
|||
|
|||
try: |
|||
import uos |
|||
|
|||
uos.VfsPosix |
|||
except (ImportError, AttributeError): |
|||
print("SKIP") |
|||
raise SystemExit |
|||
|
|||
|
|||
# getcwd and chdir |
|||
curdir = uos.getcwd() |
|||
uos.chdir("/") |
|||
print(uos.getcwd()) |
|||
uos.chdir(curdir) |
|||
print(uos.getcwd() == curdir) |
|||
|
|||
# stat |
|||
print(type(uos.stat("/"))) |
|||
|
|||
# listdir and ilistdir |
|||
print(type(uos.listdir("/"))) |
@ -0,0 +1,4 @@ |
|||
/ |
|||
True |
|||
<class 'tuple'> |
|||
<class 'list'> |
Loading…
Reference in new issue