Closed hugovk closed 2 years ago
Thanks very much for the patch! I think there's a slight adjustment we need to make to the logic right after this line. See the commit which introduced this: https://github.com/nose-devs/nose2/commit/b66885260907d7d5c1e8565fd0a13b392eb0d342
So maybe we just revert that whole changeset? I need to look at the 3.11 notes when I can to see what's going on with the debug ranges behavior.
Ah yes, reverting would probably be better, to simplify things.
Closes https://github.com/nose-devs/nose2/pull/526 as no longer needed.
Python 3.11 has started failing after beta has been released. See for example PR https://github.com/nose-devs/nose2/pull/527.
Fixes:
Regex didn't match: 'self.assertTrue\\(x\\)\n\\s+\\^+\nAssertionError: False is not true' not found in 'test_old_assertion (unittest_assertion.test_prettyassert_unittestassertion.TestFoo.test_old_assertion) ... FAIL\n\n======================================================================\nFAIL: test_old_assertion (unittest_assertion.test_prettyassert_unittestassertion.TestFoo.test_old_assertion)\n----------------------------------------------------------------------\nTraceback (most recent call last):\n File "/private/tmp/nose2/nose2/tests/functional/support/scenario/pretty_asserts/unittest_assertion/test_prettyassert_unittestassertion.py", line 7, in test_old_assertion\n self.assertTrue(x)\nAssertionError: False is not true\n\n----------------------------------------------------------------------\nRan 1 test in 0.000s\n\nFAILED (failures=1)\n'
Adding formatting for clarity:
Regex didn't match:
not found in
So it appears there's no longer an extra line between
self.assertTrue(x)
andAssertionError: False is not true