Skip to content

Commit 63da1db

Browse files
committed
Make the check simple
1 parent d5b2a2f commit 63da1db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/test/test_traceback.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4498,7 +4498,7 @@ def __getattr__(self, x):
44984498
print(qq)
44994499
instance = A()
45004500
actual = self.get_suggestion(instance, "pop")
4501-
self.assertRegex(actual, r"NameError.*:.* name 'qq' is not defined")
4501+
self.assertIn("name 'qq' is not defined", actual)
45024502
self.assertEqual(actual.count("NameError"), 1)
45034503

45044504
def test_unbound_local_error_does_not_match(self):

0 commit comments

Comments
 (0)