Skip to content

Commit 29aa05f

Browse files
committed
testing: add worksteal to TestLocking tests
Seems like it intends to check all schedulers.
1 parent d6c81d5 commit 29aa05f

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

testing/acceptance_test.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1509,13 +1509,17 @@ def test_c(self):
15091509
15101510
""" + ((_test_content * 4) % ("A", "B", "C", "D"))
15111511

1512-
@pytest.mark.parametrize("scope", ["each", "load", "loadscope", "loadfile", "no"])
1512+
@pytest.mark.parametrize(
1513+
"scope", ["each", "load", "loadscope", "loadfile", "worksteal", "no"]
1514+
)
15131515
def test_single_file(self, pytester, scope) -> None:
15141516
pytester.makepyfile(test_a=self.test_file1)
15151517
result = pytester.runpytest("-n2", "--dist=%s" % scope, "-v")
15161518
result.assert_outcomes(passed=(12 if scope != "each" else 12 * 2))
15171519

1518-
@pytest.mark.parametrize("scope", ["each", "load", "loadscope", "loadfile", "no"])
1520+
@pytest.mark.parametrize(
1521+
"scope", ["each", "load", "loadscope", "loadfile", "worksteal", "no"]
1522+
)
15191523
def test_multi_file(self, pytester, scope) -> None:
15201524
pytester.makepyfile(
15211525
test_a=self.test_file1,

0 commit comments

Comments
 (0)