kopia lustrzana https://github.com/micropython/micropython-lib
os: test_filestat.py: Use paths relative to module dir.
Allows to run via test aggregators.pull/216/head
rodzic
54e466d650
commit
e9b54606e9
|
@ -1,5 +1,9 @@
|
||||||
import os
|
import os
|
||||||
|
|
||||||
|
|
||||||
assert os.access("test_filestat.py", os.F_OK) == True
|
dir = "."
|
||||||
assert os.access("test_filestat.py-not", os.F_OK) == False
|
if "/" in __file__:
|
||||||
|
dir = __file__.rsplit("/", 1)[0]
|
||||||
|
|
||||||
|
assert os.access(dir + "/test_filestat.py", os.F_OK) == True
|
||||||
|
assert os.access(dir + "/test_filestat.py-not", os.F_OK) == False
|
||||||
|
|
Ładowanie…
Reference in New Issue