Skip to content

Commit 8f80587

Browse files
committed
Fix tests in py35
1 parent 4b4ad7e commit 8f80587

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/_pytest/pathlib.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -471,7 +471,7 @@ def import_module(
471471
if path.name != "__init__.py":
472472
modfile = modfile[: -(len("__init__.py") + 1)]
473473
try:
474-
issame = os.path.samefile(path, modfile)
474+
issame = os.path.samefile(str(path), modfile)
475475
except FileNotFoundError:
476476
issame = False
477477
if not issame:

0 commit comments

Comments
 (0)