File tree Expand file tree Collapse file tree 3 files changed +7
-4
lines changed Expand file tree Collapse file tree 3 files changed +7
-4
lines changed Original file line number Diff line number Diff line change 2323 # Only available in Python 3.4+ or as a backport
2424 enum = None
2525
26- __all__ = ["Path" ]
26+ __all__ = ["Path" , "PurePath" ]
2727
2828_PY3 = sys .version_info > (3 , 0 )
2929_PY2 = not _PY3
4242MODULE_NOT_FOUND_ERROR = "ModuleNotFoundError" if PY36 else "ImportError"
4343
4444if PY36 :
45- from pathlib import Path
45+ from pathlib import Path , PurePath
4646else :
47- from pathlib2 import Path
47+ from pathlib2 import Path , PurePath
4848
4949
5050if _PY3 :
Original file line number Diff line number Diff line change 2626 RemovedInPytest4Warning ,
2727 PytestExperimentalApiWarning ,
2828)
29+ from _pytest .compat import Path , PurePath
2930
3031set_trace = __pytestPDB .set_trace
3132
6768 "warns" ,
6869 "xfail" ,
6970 "yield_fixture" ,
71+ "Path" ,
72+ "PurePath" ,
7073]
7174
7275if __name__ == "__main__" :
Original file line number Diff line number Diff line change @@ -111,7 +111,7 @@ def test_tmpdir_factory(testdir):
111111 def session_dir(tmpdir_factory):
112112 return tmpdir_factory.mktemp('data', numbered=False)
113113 def test_some(session_dir):
114- session_dir.isdir()
114+ assert session_dir.isdir()
115115 """
116116 )
117117 reprec = testdir .inline_run ()
You can’t perform that action at this time.
0 commit comments