tests/test-demandimport.py
branchstable
changeset 49939 32155ea1e930
parent 49938 643312047e44
child 49972 1bd33932713d
--- a/tests/test-demandimport.py	Tue Jan 10 17:23:13 2023 +0400
+++ b/tests/test-demandimport.py	Tue Jan 10 17:35:53 2023 +0400
@@ -82,8 +82,7 @@
 from mercurial import error as errorproxy
 
 if ispy3:
-    # unsure why this isn't lazy.
-    assert not isinstance(f, _LazyModule)
+    assert isinstance(errorproxy, _LazyModule)
     assert f(errorproxy) == "<module 'mercurial.error' from '?'>", f(errorproxy)
 else:
     assert f(errorproxy) == "<unloaded module 'error'>", f(errorproxy)