Visitar URL original
gh-99894: Ensure the local names don't collide with the test file in traceback suggestion error checking by pablogsal · Pull Request #99895 · python/cpython · GitHub
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
Prev Previous commit
Next Next commit
Update Lib/test/test_traceback.py
  • Loading branch information
vstinner authored Nov 30, 2022
commit 2287142a8d122d289bf0b67b9ab6ff602d64f76c
2 changes: 1 addition & 1 deletion Lib/test/test_traceback.py
Original file line number Diff line number Diff line change
Expand Up @@ -2978,7 +2978,7 @@ class MyClass:
for name in ("b", "v", "m", "py"):
with self.subTest(name=name):
actual = self.get_suggestion(MyClass, name)
self.assertNotIn("you mean", actual)
self.assertNotIn("Did you mean", actual)
self.assertNotIn("'vvv", actual)

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

I don't know if this has any effect but there is a ' missing here

self.assertNotIn("'mom'", actual)
self.assertNotIn("'id'", actual)
Expand Down