Skip to content

Commit b268c82

Browse files
committed
pedantic-NotIn-too
1 parent 84989bb commit b268c82

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/test/test_traceback_timestamps.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ def test_strip_exc_timestamps_function(self):
229229

230230
# Verify original strings have timestamps and stripped ones don't
231231
self.assertIn("ZeroDivisionError: division by zero <@", output)
232-
self.assertNotIn("ZeroDivisionError: division by zero\n", output)
232+
self.assertNotRegex(output, "(?m)ZeroDivisionError: division by zero(\n|\r|$)")
233233
self.assertRegex(stripped_output, "(?m)ZeroDivisionError: division by zero(\r|\n|$)")
234234
self.assertRegex(stripped_output, "(?m)FakeError: not an exception(\r|\n|$)")
235235

0 commit comments

Comments
 (0)