@@ -1210,10 +1210,10 @@ def test(i):
1210
1210
result = pytester .runpytest ("-n2" , "--dist=isoscope" , "-v" )
1211
1211
assert get_workers_and_test_count_by_prefix (
1212
1212
"test_a.py::test" , result .outlines
1213
- ) in ( {"gw0" : 10 }, { "gw1" : 10 })
1213
+ ) == {"gw0" : 5 , "gw1" : 5 }
1214
1214
assert get_workers_and_test_count_by_prefix (
1215
1215
"test_b.py::test" , result .outlines
1216
- ) in ( {"gw0" : 10 }, { "gw1" : 10 })
1216
+ ) == {"gw0" : 5 , "gw1" : 5 }
1217
1217
1218
1218
def test_by_class (self , pytester : pytest .Pytester ) -> None :
1219
1219
pytester .makepyfile (
@@ -1233,13 +1233,13 @@ def test(self, i):
1233
1233
result = pytester .runpytest ("-n2" , "--dist=isoscope" , "-v" )
1234
1234
assert get_workers_and_test_count_by_prefix (
1235
1235
"test_a.py::TestA" , result .outlines
1236
- ) in ( {"gw0" : 10 }, { "gw1" : 10 })
1236
+ ) == {"gw0" : 5 , "gw1" : 5 }
1237
1237
assert get_workers_and_test_count_by_prefix (
1238
1238
"test_a.py::TestB" , result .outlines
1239
- ) in ( {"gw0" : 10 }, { "gw1" : 10 })
1239
+ ) == {"gw0" : 5 , "gw1" : 5 }
1240
1240
1241
1241
def test_module_single_start (self , pytester : pytest .Pytester ) -> None :
1242
- """Ensure test suite finishing in case all workers start with a single test (#277)."""
1242
+ """Ensure test suite is finishing in case all workers start with a single test (#277)."""
1243
1243
test_file1 = """
1244
1244
import pytest
1245
1245
def test():
@@ -1260,7 +1260,7 @@ def test_2():
1260
1260
c2 = get_workers_and_test_count_by_prefix ("test_c.py::test_2" , result .outlines )
1261
1261
assert a in ({"gw0" : 1 }, {"gw1" : 1 })
1262
1262
assert b in ({"gw0" : 1 }, {"gw1" : 1 })
1263
- assert a .items () ! = b .items ()
1263
+ assert a .items () = = b .items ()
1264
1264
assert c1 == c2
1265
1265
1266
1266
0 commit comments