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 5301ae6 commit eb3bcc9Copy full SHA for eb3bcc9
1 file changed
Lib/test/test_lazy_import/__init__.py
@@ -787,7 +787,7 @@ def __del__(self):
787
target = Reenter()
788
lazy import target_module as target
789
790
- try:
+ def check_after_store():
791
assert not errors, errors
792
assert len(proxies) == 1, proxies
793
proxy = proxies[0]
@@ -800,6 +800,9 @@ def __del__(self):
800
globals()["target"] = proxy
801
assert proxy.resolve() is resolved
802
assert globals()["target"] is proxy
803
+
804
+ try:
805
+ check_after_store()
806
assert len(calls) == 1, calls
807
finally:
808
builtins.__import__ = real_import
0 commit comments