Skip to content

Commit ca51b8d

Browse files
authored
Merge pull request #250 from bluetech/pytester
testing: switch testdir -> pytester
2 parents 0b0e3c1 + 4ef79b5 commit ca51b8d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

testing/test_termination.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,8 @@ def test_termination_on_remote_channel_receive(monkeypatch, makegateway):
7070
assert str(pid) not in output.stdout, output
7171

7272

73-
def test_close_initiating_remote_no_error(testdir, anypython):
74-
p = testdir.makepyfile(
73+
def test_close_initiating_remote_no_error(pytester, anypython):
74+
p = pytester.makepyfile(
7575
"""
7676
import sys
7777
sys.path.insert(0, sys.argv[1])
@@ -96,14 +96,14 @@ def test_close_initiating_remote_no_error(testdir, anypython):
9696
assert not lines
9797

9898

99-
def test_terminate_implicit_does_trykill(testdir, anypython, capfd, pool):
99+
def test_terminate_implicit_does_trykill(pytester, anypython, capfd, pool):
100100
if pool.execmodel.backend not in ("thread", "main_thread_only"):
101101
pytest.xfail("only os threading model supported")
102102
if sys.version_info >= (3, 12):
103103
pytest.xfail(
104104
"since python3.12 this test triggers RuntimeError: can't create new thread at interpreter shutdown"
105105
)
106-
p = testdir.makepyfile(
106+
p = pytester.makepyfile(
107107
"""
108108
import sys
109109
sys.path.insert(0, %r)

0 commit comments

Comments
 (0)