Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
gh-99894: Ensure the local names don't collide with the test file in …
…traceback suggestion error checking
  • Loading branch information
pablogsal committed Nov 30, 2022
commit 5612e561a96f4da735e966f527e1e01265564ae1
4 changes: 2 additions & 2 deletions Lib/test/test_traceback.py
Original file line number Diff line number Diff line change
Expand Up @@ -2979,8 +2979,8 @@ class MyClass:
with self.subTest(name=name):
actual = self.get_suggestion(MyClass, name)
self.assertNotIn("you mean", actual)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe check for Did you mean? Same remark for the other test.

Other test_traceback tests check for this (a little bit longer) pattern.

Comment thread
vstinner marked this conversation as resolved.
Outdated
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