Skip to content

Commit 9263b53

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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

testing/test_assertrewrite.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1278,7 +1278,7 @@ def spy_find_spec(name, path):
12781278
# use default patterns, otherwise we inherit pytest's testing config
12791279
hook.fnpats[:] = ["test_*.py", "*_test.py"]
12801280
monkeypatch.setattr(hook, "_find_spec", spy_find_spec)
1281-
hook.set_session(StubSession())
1281+
hook.set_session(StubSession()) # type: ignore[arg-type]
12821282
testdir.syspathinsert()
12831283
return hook
12841284

0 commit comments

Comments
 (0)