Mercurial > public > mercurial-scm > hg-stable
diff tests/test-demandimport.py.out @ 30024: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 |
line wrap: on
line diff
--- a/tests/test-demandimport.py.out Tue Sep 27 21:56:00 2016 +0900 +++ b/tests/test-demandimport.py.out Mon Sep 26 23:28:57 2016 +0900 @@ -16,4 +16,6 @@ re = <unloaded module 'sys'> re.stderr = <open file '<whatever>', mode 'w' at 0x?> re = <proxied module 'sys'> +contextlib = <unloaded module 'contextlib'> +contextlib.unknownattr = ImportError: cannot import name unknownattr node = <module 'mercurial.node' from '?'>