Skip to content

Commit 5612e56

Browse files
committed
pythongh-99894: Ensure the local names don't collide with the test file in traceback suggestion error checking
1 parent 05dfc53 commit 5612e56

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Lib/test/test_traceback.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2979,8 +2979,8 @@ class MyClass:
29792979
with self.subTest(name=name):
29802980
actual = self.get_suggestion(MyClass, name)
29812981
self.assertNotIn("you mean", actual)
2982-
self.assertNotIn("vvv", actual)
2983-
self.assertNotIn("mom", actual)
2982+
self.assertNotIn("'vvv'", actual)
2983+
self.assertNotIn("'mom'", actual)
29842984
self.assertNotIn("'id'", actual)
29852985
self.assertNotIn("'w'", actual)
29862986
self.assertNotIn("'pytho'", actual)

0 commit comments

Comments
 (0)