Skip to content

Commit

Permalink
fixup! pythongh-99894: Ensure the local names don't collide with the …
Browse files Browse the repository at this point in the history
…test file in traceback suggestion error checking
  • Loading branch information
pablogsal committed Nov 30, 2022
1 parent 5612e56 commit d159ac5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Lib/test/test_traceback.py
Original file line number Diff line number Diff line change
Expand Up @@ -2979,7 +2979,7 @@ class MyClass:
with self.subTest(name=name):
actual = self.get_suggestion(MyClass, name)
self.assertNotIn("you mean", actual)
self.assertNotIn("'vvv'", actual)
self.assertNotIn("'vvv", actual)
self.assertNotIn("'mom'", actual)
self.assertNotIn("'id'", actual)
self.assertNotIn("'w'", actual)
Expand Down Expand Up @@ -3169,8 +3169,8 @@ def test_import_from_error_bad_suggestions_do_not_trigger_for_small_names(self):
with self.subTest(name=name):
actual = self.get_import_from_suggestion(code, name)
self.assertNotIn("you mean", actual)
self.assertNotIn("vvv", actual)
self.assertNotIn("mom", actual)
self.assertNotIn("'vvv'", actual)
self.assertNotIn("'mom'", actual)
self.assertNotIn("'id'", actual)
self.assertNotIn("'w'", actual)
self.assertNotIn("'pytho'", actual)
Expand Down

0 comments on commit d159ac5

Please sign in to comment.