Skip to content

Commit 5f58803

Browse files
committed
Fix tests in python 3.12
1 parent 8678b9d commit 5f58803

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

tests/feature/test_gherkin_terminal_reporter.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,11 @@ def test_1():
7474
regular.assert_outcomes(passed=1, failed=0)
7575
gherkin.assert_outcomes(passed=1, failed=0)
7676

77-
regular.stdout.fnmatch_lines("test_verbose_mode_should_preserve_displaying_regular_tests_as_usual.py . [100%]")
78-
gherkin.stdout.fnmatch_lines(
79-
"test_verbose_mode_should_preserve_displaying_regular_tests_as_usual.py::test_1 PASSED [100%]"
77+
regular.stdout.re_match_lines(
78+
r"test_verbose_mode_should_preserve_displaying_regular_tests_as_usual\.py \.\s+\[100%\]"
79+
)
80+
gherkin.stdout.re_match_lines(
81+
r"test_verbose_mode_should_preserve_displaying_regular_tests_as_usual\.py::test_1 PASSED\s+\[100%\]"
8082
)
8183

8284

0 commit comments

Comments
 (0)