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 210772f commit f868359Copy full SHA for f868359
Lib/test/test_list.py
@@ -336,17 +336,17 @@ def test_deopt_from_append_list(self):
336
# gh-132011: it used to crash, because
337
# of `CALL_LIST_APPEND` specialization failure.
338
code = textwrap.dedent("""
339
- l = []
340
- def lappend(l, x, y):
341
- l.append((x, y))
342
- for x in range(3):
343
- lappend(l, None, None)
344
- try:
345
- lappend(list, None, None)
346
- except TypeError:
347
- pass
348
- else:
349
- raise AssertionError
+ l = []
+ def lappend(l, x, y):
+ l.append((x, y))
+ for x in range(3):
+ lappend(l, None, None)
+ try:
+ lappend(list, None, None)
+ except TypeError:
+ pass
+ else:
+ raise AssertionError
350
""")
351
352
rc, _, _ = assert_python_ok("-c", code)
0 commit comments