From fa65dc18f2418767bd1834a3923830d0bc495ef1 Mon Sep 17 00:00:00 2001 From: mrbean-bremen Date: Tue, 27 Feb 2024 20:56:55 +0100 Subject: [PATCH] Add -v for debugging --- tests/test_xdist_handling.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/test_xdist_handling.py b/tests/test_xdist_handling.py index a90102a..a00b0d6 100644 --- a/tests/test_xdist_handling.py +++ b/tests/test_xdist_handling.py @@ -5,6 +5,7 @@ def test_xdist_ordering(tmpdir): + print(f"{tmpdir=}") testname = str(tmpdir.join("first_test.py")) with open(testname, "w") as fi: fi.write( @@ -59,11 +60,11 @@ def test_first_string(): ) ) # With `loadfile`, the tests should pass - args = ["-n3", "--dist=loadfile", str(tmpdir)] + args = ["-n3", "-v", "--dist=loadfile", str(tmpdir)] ret = pytest.main(args, [pytest_order]) assert ret == 0 # Without `loadfile`, the tests should fail - args = ["-n3", str(tmpdir)] + args = ["-n3", "-v", str(tmpdir)] ret = pytest.main(args, [pytest_order]) assert ret == 1