@@ -718,8 +718,7 @@ def test_foo(x):
718718
719719
720720def test_tmpdir_disabled (testdir ):
721- """Test xdist doesn't break if internal tmpdir plugin is disabled (#22).
722- """
721+ """Test xdist doesn't break if internal tmpdir plugin is disabled (#22)."""
723722 p1 = testdir .makepyfile (
724723 """
725724 def test_ok():
@@ -733,8 +732,7 @@ def test_ok():
733732
734733@pytest .mark .parametrize ("plugin" , ["xdist.looponfail" , "xdist.boxed" ])
735734def test_sub_plugins_disabled (testdir , plugin ):
736- """Test that xdist doesn't break if we disable any of its sub-plugins. (#32)
737- """
735+ """Test that xdist doesn't break if we disable any of its sub-plugins. (#32)"""
738736 p1 = testdir .makepyfile (
739737 """
740738 def test_ok():
@@ -1239,14 +1237,22 @@ def test(self, i):
12391237 "test_b.py::TestB" , result .outlines
12401238 )
12411239
1242- assert test_a_workers_and_test_count in (
1243- {"gw0" : 10 },
1244- {"gw1" : 0 },
1245- ) or test_a_workers_and_test_count in ({"gw0" : 0 }, {"gw1" : 10 })
1246- assert test_b_workers_and_test_count in (
1247- {"gw0" : 10 },
1248- {"gw1" : 0 },
1249- ) or test_b_workers_and_test_count in ({"gw0" : 0 }, {"gw1" : 10 })
1240+ assert (
1241+ test_a_workers_and_test_count
1242+ in (
1243+ {"gw0" : 10 },
1244+ {"gw1" : 0 },
1245+ )
1246+ or test_a_workers_and_test_count in ({"gw0" : 0 }, {"gw1" : 10 })
1247+ )
1248+ assert (
1249+ test_b_workers_and_test_count
1250+ in (
1251+ {"gw0" : 10 },
1252+ {"gw1" : 0 },
1253+ )
1254+ or test_b_workers_and_test_count in ({"gw0" : 0 }, {"gw1" : 10 })
1255+ )
12501256
12511257 def test_by_class (self , testdir ):
12521258 testdir .makepyfile (
@@ -1271,14 +1277,22 @@ def test(self, i):
12711277 "test_a.py::TestB" , result .outlines
12721278 )
12731279
1274- assert test_a_workers_and_test_count in (
1275- {"gw0" : 10 },
1276- {"gw1" : 0 },
1277- ) or test_a_workers_and_test_count in ({"gw0" : 0 }, {"gw1" : 10 })
1278- assert test_b_workers_and_test_count in (
1279- {"gw0" : 10 },
1280- {"gw1" : 0 },
1281- ) or test_b_workers_and_test_count in ({"gw0" : 0 }, {"gw1" : 10 })
1280+ assert (
1281+ test_a_workers_and_test_count
1282+ in (
1283+ {"gw0" : 10 },
1284+ {"gw1" : 0 },
1285+ )
1286+ or test_a_workers_and_test_count in ({"gw0" : 0 }, {"gw1" : 10 })
1287+ )
1288+ assert (
1289+ test_b_workers_and_test_count
1290+ in (
1291+ {"gw0" : 10 },
1292+ {"gw1" : 0 },
1293+ )
1294+ or test_b_workers_and_test_count in ({"gw0" : 0 }, {"gw1" : 10 })
1295+ )
12821296
12831297 def test_module_single_start (self , testdir ):
12841298 """Fix test suite never finishing in case all workers start with a single test (#277)."""
0 commit comments