fixup! Rename variables 'tmpdir'->'tmp_path'

This commit is contained in:
Matthew Hughes 2021-02-24 20:55:35 +00:00
parent c9bb4c418f
commit 514f8e0680
1 changed files with 2 additions and 3 deletions

View File

@ -136,7 +136,7 @@ class TestCollectFS:
ensure_file(tmp_path / ".whatever" / "test_notfound.py")
ensure_file(tmp_path / ".bzr" / "test_notfound.py")
ensure_file(tmp_path / "normal" / "test_found.py")
for x in Path(str(tmp_path)).rglob("test_*.py"):
for x in tmp_path.rglob("test_*.py"):
x.write_text("def test_hello(): pass", "utf-8")
result = pytester.runpytest("--collect-only")
@ -632,7 +632,6 @@ class Test_getinitialnodes:
def test_global_file(self, pytester: Pytester) -> None:
tmp_path = pytester.path
x = ensure_file(tmp_path / "x.py")
with tmp_path.cwd():
config = pytester.parseconfigure(x)
col = pytester.getnode(config, x)
assert isinstance(col, pytest.Module)