From 5612e561a96f4da735e966f527e1e01265564ae1 Mon Sep 17 00:00:00 2001 From: Pablo Galindo Date: Wed, 30 Nov 2022 11:22:49 +0000 Subject: [PATCH] gh-99894: Ensure the local names don't collide with the test file in traceback suggestion error checking --- Lib/test/test_traceback.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Lib/test/test_traceback.py b/Lib/test/test_traceback.py index c17bbb48b65b2d..655470fec95639 100644 --- a/Lib/test/test_traceback.py +++ b/Lib/test/test_traceback.py @@ -2979,8 +2979,8 @@ class MyClass: with self.subTest(name=name): actual = self.get_suggestion(MyClass, 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)