Skip to content

Commit 0ba58a3

Browse files
committed
Add a comment.
1 parent bf0e8aa commit 0ba58a3

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

Lib/test/test_traceback.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4629,6 +4629,8 @@ def test_suggestions_extension(self):
46294629
# gh-131936: _Py_CalculateSuggestions wanted exactly a list
46304630
class MyList(list):
46314631
def __getitem__(self, *_):
4632+
# _Py_CalculateSuggestions uses the list macros, so this
4633+
# shouldn't be a problem.
46324634
raise RuntimeError("evil")
46334635

46344636
self.assertEqual(_suggestions._generate_suggestions(MyList(["spanish", "inquisition"]), "spani"),

0 commit comments

Comments
 (0)