Commit 6753ba5 1 parent 76bd4cc commit 6753ba5 Copy full SHA for 6753ba5
File tree 3 files changed +7
-4
lines changed
3 files changed +7
-4
lines changed Original file line number Diff line number Diff line change 23
23
# Only available in Python 3.4+ or as a backport
24
24
enum = None
25
25
26
- __all__ = ["Path" ]
26
+ __all__ = ["Path" , "PurePath" ]
27
27
28
28
_PY3 = sys .version_info > (3 , 0 )
29
29
_PY2 = not _PY3
42
42
MODULE_NOT_FOUND_ERROR = "ModuleNotFoundError" if PY36 else "ImportError"
43
43
44
44
if PY36 :
45
- from pathlib import Path
45
+ from pathlib import Path , PurePath
46
46
else :
47
- from pathlib2 import Path
47
+ from pathlib2 import Path , PurePath
48
48
49
49
50
50
if _PY3 :
Original file line number Diff line number Diff line change 26
26
RemovedInPytest4Warning ,
27
27
PytestExperimentalApiWarning ,
28
28
)
29
+ from _pytest .compat import Path , PurePath
29
30
30
31
set_trace = __pytestPDB .set_trace
31
32
67
68
"warns" ,
68
69
"xfail" ,
69
70
"yield_fixture" ,
71
+ "Path" ,
72
+ "PurePath" ,
70
73
]
71
74
72
75
if __name__ == "__main__" :
Original file line number Diff line number Diff line change @@ -111,7 +111,7 @@ def test_tmpdir_factory(testdir):
111
111
def session_dir(tmpdir_factory):
112
112
return tmpdir_factory.mktemp('data', numbered=False)
113
113
def test_some(session_dir):
114
- session_dir.isdir()
114
+ assert session_dir.isdir()
115
115
"""
116
116
)
117
117
reprec = testdir .inline_run ()
You can’t perform that action at this time.
0 commit comments