Skip to content

Commit 0361975

Browse files
committed
fixup! fixup! fix _should_rewrite: pass py.path.local
1 parent 66b7905 commit 0361975

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/_pytest/assertion/rewrite.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ def find_spec(self, name, path=None, target=None):
9797
else:
9898
fn = spec.origin
9999

100-
if not self._should_rewrite(name, fn, state):
100+
if not self._should_rewrite(name, py.path.local(fn), state):
101101
return None
102102

103103
return importlib.util.spec_from_file_location(

0 commit comments

Comments
 (0)