Skip to content

Commit

Permalink
fixup! fixup! fix _should_rewrite: pass py.path.local
Browse files Browse the repository at this point in the history
  • Loading branch information
blueyed committed Dec 23, 2020
1 parent 9fd867d commit 59f0104
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/_pytest/assertion/rewrite.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ def find_spec(self, name, path=None, target=None):
else:
fn = spec.origin

if not self._should_rewrite(name, fn, state):
if not self._should_rewrite(name, py.path.local(fn), state):
return None

return importlib.util.spec_from_file_location(
Expand Down

0 comments on commit 59f0104

Please sign in to comment.