We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 45b3cd8 commit 0493ff2Copy full SHA for 0493ff2
1 file changed
Lib/test/test_traceback.py
@@ -5111,20 +5111,20 @@ def func():
5111
5112
def test_name_error_do_not_suggest_builtin_name_in_delete(self):
5113
def func():
5114
- del next
+ exec("del next")
5115
5116
actual = self.get_suggestion(func)
5117
self.assertNotIn("Did you mean: 'anext'", actual)
5118
5119
def test_name_error_suggest_builtin_name_in_delete_if_not_delete_the_name_itself(self):
5120
def func1():
5121
- del nxt[1]
+ exec("del nxt[1]")
5122
5123
actual = self.get_suggestion(func1)
5124
self.assertIn("Did you mean: 'next'", actual)
5125
5126
def func2():
5127
- del nxt.__name__
+ exec("del nxt.__name__")
5128
5129
actual = self.get_suggestion(func2)
5130
0 commit comments