Skip to content

Commit

Permalink
Merge pull request #608 from musicinmybrain/py313-regex
Browse files Browse the repository at this point in the history
Adjust the regex in test_unittest_assertion for Python 3.13
  • Loading branch information
sirosen committed May 9, 2024
2 parents e4b2553 + 658cd0f commit 8830d0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nose2/tests/functional/test_prettyassert.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ def test_unittest_assertion(self):
"scenario/pretty_asserts/unittest_assertion", "-v", "--pretty-assert"
)
# look for typical unittest output
expected = "self.assertTrue\\(x\\)\nAssertionError: False is not true"
expected = "self.assertTrue\\(x\\)\n(\\W+\n)?AssertionError: False is not true"
stderr = self.assertProcOutputPattern(proc, expected)
# the assertion line wasn't reprinted by prettyassert
self.assertNotIn(">>> self.assertTrue", stderr)
Expand Down

0 comments on commit 8830d0c

Please sign in to comment.