diff --git a/tests/test-demandimport.py b/tests/test-demandimport.py --- a/tests/test-demandimport.py +++ b/tests/test-demandimport.py @@ -82,8 +82,7 @@ assert 'mercurial.error' not in sys.modu 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) == "", f(errorproxy) else: assert f(errorproxy) == "", f(errorproxy)