We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 84989bb commit b268c82Copy full SHA for b268c82
Lib/test/test_traceback_timestamps.py
@@ -229,7 +229,7 @@ def test_strip_exc_timestamps_function(self):
229
230
# Verify original strings have timestamps and stripped ones don't
231
self.assertIn("ZeroDivisionError: division by zero <@", output)
232
- self.assertNotIn("ZeroDivisionError: division by zero\n", output)
+ self.assertNotRegex(output, "(?m)ZeroDivisionError: division by zero(\n|\r|$)")
233
self.assertRegex(stripped_output, "(?m)ZeroDivisionError: division by zero(\r|\n|$)")
234
self.assertRegex(stripped_output, "(?m)FakeError: not an exception(\r|\n|$)")
235
0 commit comments