bring in purepath and fix an assertion

This commit is contained in:
Ronny Pfannschmidt 2018-09-19 18:17:10 +02:00
parent 8e00280fc1
commit 66a690928c
2 changed files with 4 additions and 1 deletions

View File

@ -26,6 +26,7 @@ from _pytest.warning_types import (
RemovedInPytest4Warning,
PytestExperimentalApiWarning,
)
from _pytest.compat import Path, PurePath
set_trace = __pytestPDB.set_trace
@ -67,6 +68,8 @@ __all__ = [
"warns",
"xfail",
"yield_fixture",
"Path",
"PurePath",
]
if __name__ == "__main__":

View File

@ -111,7 +111,7 @@ def test_tmpdir_factory(testdir):
def session_dir(tmpdir_factory):
return tmpdir_factory.mktemp('data', numbered=False)
def test_some(session_dir):
session_dir.isdir()
assert session_dir.isdir()
"""
)
reprec = testdir.inline_run()