Skip to content

Commit

Permalink
fixup! fix _should_rewrite: pass py.path.local
Browse files Browse the repository at this point in the history
  • Loading branch information
blueyed committed Sep 14, 2021
1 parent 0361975 commit 9263b53
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion testing/test_assertrewrite.py
Original file line number Diff line number Diff line change
Expand Up @@ -1278,7 +1278,7 @@ def spy_find_spec(name, path):
# use default patterns, otherwise we inherit pytest's testing config
hook.fnpats[:] = ["test_*.py", "*_test.py"]
monkeypatch.setattr(hook, "_find_spec", spy_find_spec)
hook.set_session(StubSession())
hook.set_session(StubSession()) # type: ignore[arg-type]
testdir.syspathinsert()
return hook

Expand Down

0 comments on commit 9263b53

Please sign in to comment.