From 11c5a39a967c1198597d95b24976b9f66a2ba80e Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Wed, 23 Dec 2020 23:23:04 +0100 Subject: [PATCH] fixup! fix _should_rewrite: pass py.path.local --- testing/test_assertrewrite.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testing/test_assertrewrite.py b/testing/test_assertrewrite.py index 1aa04d41bc6..a6c2236b824 100644 --- a/testing/test_assertrewrite.py +++ b/testing/test_assertrewrite.py @@ -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