We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e9b5460 commit 61f9dd8Copy full SHA for 61f9dd8
os.path/test_path.py
@@ -1,5 +1,10 @@
1
import sys
2
-sys.path[0] = "os"
+
3
+dir = "."
4
+if "/" in __file__:
5
+ dir = __file__.rsplit("/", 1)[0]
6
7
+sys.path[0] = dir + "/os"
8
from path import *
9
10
assert split("") == ("", "")
@@ -9,9 +14,9 @@
14
assert split("/foo/") == ("/foo", "")
15
assert split("/foo/bar") == ("/foo", "bar")
11
16
12
-assert exists("test_path.py")
13
-assert not exists("test_path.py--")
17
+assert exists(dir + "/test_path.py")
18
+assert not exists(dir + "/test_path.py--")
19
-assert isdir("os")
-assert not isdir("os--")
-assert not isdir("test_path.py")
20
+assert isdir(dir + "/os")
21
+assert not isdir(dir + "/os--")
22
+assert not isdir(dir + "/test_path.py")
0 commit comments