##// END OF EJS Templates
windows: add win32com.shell to demandimport ignore list...
windows: add win32com.shell to demandimport ignore list Module 'appdirs' tries to import win32com.shell (and catch ImportError as an indication of failure) to check whether some further functionality should be implemented one or another way [1]. Of course, demandimport lets it down, so if we want appdirs to work we have to add it to demandimport's ignore list. The reason we want appdirs to work is becuase it is used by setuptools [2] to determine egg cache location. Only fairly recent versions of setuptools depend on this so people don't see this often. [1] https://github.com/ActiveState/appdirs/blob/master/appdirs.py#L560 [2] https://github.com/pypa/setuptools/blob/aae0a928119d2a178882c32bded02270e30d0273/pkg_resources/__init__.py#L1369

File last commit:

r30647:1914db1b stable
r31990:3e03a4b9 default
Show More
test-demandimport.py.out
23 lines | 910 B | text/plain | TextLexer
/ tests / test-demandimport.py.out
Martin Geisler
tests: renamed Python tests to .py
r8449 os = <unloaded module 'os'>
os.system = <built-in function system>
os = <module 'os' from '?'>
util = <unloaded module 'util'>
util.system = <function system at 0x?>
util = <module 'mercurial.util' from '?'>
util.system = <function system at 0x?>
Bryan O'Sullivan
test-demandimport: ensure that relative imports are deferred...
r27535 hgweb = <unloaded module 'hgweb'>
hgweb_mod = <unloaded module 'hgweb_mod'>
hgweb = <module 'mercurial.hgweb' from '?'>
Martin Geisler
tests: renamed Python tests to .py
r8449 fred = <unloaded module 're'>
re = <unloaded module 'sys'>
fred = <unloaded module 're'>
fred.sub = <function sub at 0x?>
fred = <proxied module 're'>
re = <unloaded module 'sys'>
Dan Villiom Podlaski Christiansen
test-demandimport.py: PyPy support...
r13083 re.stderr = <open file '<whatever>', mode 'w' at 0x?>
Martin Geisler
tests: renamed Python tests to .py
r8449 re = <proxied module 'sys'>
Yuya Nishihara
demandimport: error out early on missing attribute of non package (issue5373)...
r30022 contextlib = <unloaded module 'contextlib'>
contextlib.unknownattr = ImportError: cannot import name unknownattr
Yuya Nishihara
demandimport: do not raise ImportError for unknown item in fromlist...
r30647 __import__('contextlib', ..., ['unknownattr']) = <module 'contextlib' from '?'>
hasattr(contextlibimp, 'unknownattr') = False
Mads Kiilerich
demandimport: make it possible to disable by setting HGDEMANDIMPORT=disable...
r21025 node = <module 'mercurial.node' from '?'>