From 67e69a7e498b947ce25eac1fa30d02e6f4a4585d Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Sat, 15 Feb 2020 01:22:01 +0100 Subject: [PATCH] tests: harden test_xdist_verbose (#6700) --- testing/test_terminal.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/testing/test_terminal.py b/testing/test_terminal.py index a0b1b41be..8c775bd7a 100644 --- a/testing/test_terminal.py +++ b/testing/test_terminal.py @@ -1761,6 +1761,22 @@ class TestProgressOutputStyle: r"\[gw\d\] \[\s*\d+%\] PASSED test_foobar.py::test_foobar\[1\]", ] ) + output.stdout.fnmatch_lines_random( + [ + line.translate(TRANS_FNMATCH) + for line in [ + "test_bar.py::test_bar[0] ", + "test_foo.py::test_foo[0] ", + "test_foobar.py::test_foobar[0] ", + "[gw?] [ 5%] PASSED test_*[?] ", + "[gw?] [ 10%] PASSED test_*[?] ", + "[gw?] [ 55%] PASSED test_*[?] ", + "[gw?] [ 60%] PASSED test_*[?] ", + "[gw?] [ 95%] PASSED test_*[?] ", + "[gw?] [100%] PASSED test_*[?] ", + ] + ] + ) def test_capture_no(self, many_tests_files, testdir): output = testdir.runpytest("-s")