@@ -1695,11 +1695,27 @@ def test_xdist_verbose(self, many_tests_files, testdir, monkeypatch):
1695
1695
pytest .importorskip ("xdist" )
1696
1696
monkeypatch .delenv ("PYTEST_DISABLE_PLUGIN_AUTOLOAD" , raising = False )
1697
1697
output = testdir .runpytest ("-n2" , "-v" )
1698
- output .stdout .re_match_lines_random (
1698
+ output .stdout .fnmatch_lines (
1699
1699
[
1700
- r"\[gw\d\] \[\s*\d+%\] PASSED test_bar.py::test_bar\[1\]" ,
1701
- r"\[gw\d\] \[\s*\d+%\] PASSED test_foo.py::test_foo\[1\]" ,
1702
- r"\[gw\d\] \[\s*\d+%\] PASSED test_foobar.py::test_foobar\[1\]" ,
1700
+ line .translate (TRANS_FNMATCH )
1701
+ for line in [
1702
+ "[gw?] [ 5%] PASSED test_bar.py::test_bar[?] " ,
1703
+ "[gw?] [ 10%] PASSED test_bar.py::test_bar[?] " ,
1704
+ "[gw?] [ 55%] PASSED test_foo.py::test_foo[?] " ,
1705
+ "[gw?] [ 60%] PASSED test_foo.py::test_foo[?] " ,
1706
+ "[gw?] [ 95%] PASSED test_foobar.py::test_foobar[?] " ,
1707
+ "[gw?] [100%] PASSED test_foobar.py::test_foobar[?] " ,
1708
+ ]
1709
+ ]
1710
+ )
1711
+ output .stdout .fnmatch_lines_random (
1712
+ [
1713
+ line .translate (TRANS_FNMATCH )
1714
+ for line in [
1715
+ "test_bar.py::test_bar[0] " ,
1716
+ "test_foo.py::test_foo[0] " ,
1717
+ "test_foobar.py::test_foobar[0] " ,
1718
+ ]
1703
1719
]
1704
1720
)
1705
1721
0 commit comments