Skip to content

Commit 3c8a60a

Browse files
authored
Catchup testdir usage
1 parent 4951a85 commit 3c8a60a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

testing/test_basic.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -932,7 +932,7 @@ def test_self_isinstance(self, foo):
932932
assert isinstance(self, TestClass)
933933
"""
934934
testdir.makepyfile(test_file)
935-
rr = testdir.run(sys.executable, "-m", "pytest", "-v", *cmd_opts)
935+
rr = testdir.run(*cmd_opts)
936936
assert_outcomes(rr, {"passed": 1})
937937

938938

@@ -954,7 +954,7 @@ def test_self_isinstance(self, foo):
954954
assert foo == 37
955955
"""
956956
testdir.makepyfile(test_file)
957-
rr = testdir.run(sys.executable, "-m", "pytest", "-v", *cmd_opts)
957+
rr = testdir.run(*cmd_opts, timeout=timeout)
958958
assert_outcomes(rr, {"passed": 1})
959959

960960

@@ -974,7 +974,7 @@ async def test_self_isinstance(self, foo):
974974
assert isinstance(self, TestClass)
975975
"""
976976
testdir.makepyfile(test_file)
977-
rr = testdir.run(sys.executable, "-m", "pytest", "-v", *cmd_opts)
977+
rr = testdir.run(*cmd_opts, timeout=timeout)
978978
assert_outcomes(rr, {"passed": 1})
979979

980980

@@ -994,5 +994,5 @@ async def test_self_isinstance(self, foo):
994994
assert foo == 37
995995
"""
996996
testdir.makepyfile(test_file)
997-
rr = testdir.run(sys.executable, "-m", "pytest", "-v", *cmd_opts)
997+
rr = testdir.run(*cmd_opts, timeout=timeout)
998998
assert_outcomes(rr, {"passed": 1})

0 commit comments

Comments
 (0)