Mercurial > hg
comparison tests/test-demandimport.py.out @ 30022:26a4e46af2bc
demandimport: error out early on missing attribute of non package (issue5373)
If the parent module isn't a package, all valid attributes must be obtained
from it. We can raise ImportError early if any attributes not found.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Mon, 26 Sep 2016 23:28:57 +0900 |
parents | 0d0f4070f6d7 |
children | 1914db1b7d9e |
comparison
equal
deleted
inserted
replaced
30021:16a09ae318b4 | 30022:26a4e46af2bc |
---|---|
14 fred.sub = <function sub at 0x?> | 14 fred.sub = <function sub at 0x?> |
15 fred = <proxied module 're'> | 15 fred = <proxied module 're'> |
16 re = <unloaded module 'sys'> | 16 re = <unloaded module 'sys'> |
17 re.stderr = <open file '<whatever>', mode 'w' at 0x?> | 17 re.stderr = <open file '<whatever>', mode 'w' at 0x?> |
18 re = <proxied module 'sys'> | 18 re = <proxied module 'sys'> |
19 contextlib = <unloaded module 'contextlib'> | |
20 contextlib.unknownattr = ImportError: cannot import name unknownattr | |
19 node = <module 'mercurial.node' from '?'> | 21 node = <module 'mercurial.node' from '?'> |