Skip to content

Commit c9c3441

Browse files
committed
gh-152298: Snapshot lazy proxy in reentrant test
1 parent a346705 commit c9c3441

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/test/test_lazy_import/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -775,7 +775,7 @@ def custom_import(name, globals=None, locals=None, fromlist=None,
775775
class Reenter:
776776
def __del__(self):
777777
try:
778-
proxies.append(globals()["target"])
778+
proxies.append(globals().copy()["target"])
779779
assert target.VALUE == "resolved"
780780
except BaseException as exc:
781781
errors.append((type(exc).__name__, str(exc)))

0 commit comments

Comments
 (0)