We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c416766 commit d5b2a2fCopy full SHA for d5b2a2f
Lib/test/test_traceback.py
@@ -4498,7 +4498,7 @@ def __getattr__(self, x):
4498
print(qq)
4499
instance = A()
4500
actual = self.get_suggestion(instance, "pop")
4501
- self.assertRegex(actual, r"NameError:.* name 'qq' is not defined")
+ self.assertRegex(actual, r"NameError.*:.* name 'qq' is not defined")
4502
self.assertEqual(actual.count("NameError"), 1)
4503
4504
def test_unbound_local_error_does_not_match(self):
0 commit comments