diff options
author | Ran Benita <ran@unusedvar.com> | 2020-12-14 15:54:59 +0200 |
---|---|---|
committer | Ran Benita <ran@unusedvar.com> | 2020-12-15 00:29:13 +0200 |
commit | 2cb34a99cbf423c50b7b6592a54f80f68bb9fdc0 (patch) | |
tree | 8570f87211da6ce71e8f331fb95e3046cd4da2e3 /testing/test_assertrewrite.py | |
parent | cb8142b8eccfa2fedd058c101230f1235e461f3b (diff) | |
download | pytest-2cb34a99cbf423c50b7b6592a54f80f68bb9fdc0.tar.gz |
Some py.path.local -> pathlib.Path
Diffstat (limited to 'testing/test_assertrewrite.py')
-rw-r--r-- | testing/test_assertrewrite.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/testing/test_assertrewrite.py b/testing/test_assertrewrite.py index 84d5276e7..ffe18260f 100644 --- a/testing/test_assertrewrite.py +++ b/testing/test_assertrewrite.py @@ -17,8 +17,6 @@ from typing import Mapping from typing import Optional from typing import Set -import py - import _pytest._code import pytest from _pytest.assertion import util @@ -1311,7 +1309,7 @@ class TestEarlyRewriteBailout: import importlib.machinery self.find_spec_calls: List[str] = [] - self.initial_paths: Set[py.path.local] = set() + self.initial_paths: Set[Path] = set() class StubSession: _initialpaths = self.initial_paths @@ -1346,7 +1344,7 @@ class TestEarlyRewriteBailout: pytester.makepyfile(test_foo="def test_foo(): pass") pytester.makepyfile(bar="def bar(): pass") foobar_path = pytester.makepyfile(foobar="def foobar(): pass") - self.initial_paths.add(py.path.local(foobar_path)) + self.initial_paths.add(foobar_path) # conftest files should always be rewritten assert hook.find_spec("conftest") is not None |