File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 44 run_with_locale , cpython_only , no_rerun ,
55 MISSING_C_DOCSTRINGS ,
66)
7+ from test .support .script_helper import assert_python_ok
78import collections .abc
89from collections import namedtuple , UserDict
910import copy
@@ -649,15 +650,18 @@ def test_capsule_type(self):
649650 def test_gh131998 (self ):
650651 # GH-131998: The specialized instruction would get tricked into dereferencing
651652 # a bound "self" that didn't exist if subsequently called unbound.
653+ code = """if True:
654+ import glob
652655 def call(part):
653656 part.pop()
654657
655-
656658 try:
657- call (["a" ])
659+ call(['a' ])
658660 call(list)
659661 except:
660662 pass
663+ """
664+ assert_python_ok ("-c" , code )
661665
662666
663667class UnionTests (unittest .TestCase ):
You can’t perform that action at this time.
0 commit comments