Skip to content

Commit cd12c28

Browse files
committed
Add back the 'import glob', it doesn't reproduce.
1 parent 04b61df commit cd12c28

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Lib/test/test_types.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -651,6 +651,10 @@ def test_gh131998(self):
651651
# GH-131998: The specialized instruction would get tricked into dereferencing
652652
# a bound "self" that didn't exist if subsequently called unbound.
653653
code = """if True:
654+
# The optimizer is finicky, and the easiest way (that I know of)
655+
# to get it to reproduce in CI is by importing a Python module at runtime.
656+
import glob
657+
654658
def call(part):
655659
part.pop()
656660

0 commit comments

Comments
 (0)