fixup! Rename variables 'tmpdir'->'tmp_path'
This commit is contained in:
parent
c9bb4c418f
commit
514f8e0680
|
@ -136,7 +136,7 @@ class TestCollectFS:
|
||||||
ensure_file(tmp_path / ".whatever" / "test_notfound.py")
|
ensure_file(tmp_path / ".whatever" / "test_notfound.py")
|
||||||
ensure_file(tmp_path / ".bzr" / "test_notfound.py")
|
ensure_file(tmp_path / ".bzr" / "test_notfound.py")
|
||||||
ensure_file(tmp_path / "normal" / "test_found.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")
|
x.write_text("def test_hello(): pass", "utf-8")
|
||||||
|
|
||||||
result = pytester.runpytest("--collect-only")
|
result = pytester.runpytest("--collect-only")
|
||||||
|
@ -632,7 +632,6 @@ class Test_getinitialnodes:
|
||||||
def test_global_file(self, pytester: Pytester) -> None:
|
def test_global_file(self, pytester: Pytester) -> None:
|
||||||
tmp_path = pytester.path
|
tmp_path = pytester.path
|
||||||
x = ensure_file(tmp_path / "x.py")
|
x = ensure_file(tmp_path / "x.py")
|
||||||
with tmp_path.cwd():
|
|
||||||
config = pytester.parseconfigure(x)
|
config = pytester.parseconfigure(x)
|
||||||
col = pytester.getnode(config, x)
|
col = pytester.getnode(config, x)
|
||||||
assert isinstance(col, pytest.Module)
|
assert isinstance(col, pytest.Module)
|
||||||
|
|
Loading…
Reference in New Issue