Mercurial > hg
diff tests/test-demandimport.py.out @ 36251:c2c5f9f6fa21
tests: avoid referring to pvec in demandimport test
Nothing else currently uses pvec, so we may want to delete it (but
Augie Fackler says he may want to use it). To enable deletion, this
patch replaces it by the error module in the demandimport test (any
module works). However, since the error module had already been loaded
at this point in the test (via the util module), I moved it earlier in
the test so it's still not loaded (although I'm not sure if that's
even relevant to the test).
Differential Revision: https://phab.mercurial-scm.org/D2287
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Fri, 16 Feb 2018 11:33:56 -0800 |
parents | b39f0fdb0338 |
children | 1d0610fdd63b |
line wrap: on
line diff
--- a/tests/test-demandimport.py.out Mon Jan 08 12:09:43 2018 +0900 +++ b/tests/test-demandimport.py.out Fri Feb 16 11:33:56 2018 -0800 @@ -1,4 +1,9 @@ node = <module 'mercurial.node' from '?'> +errorproxy = <unloaded module 'error'> +errorproxy.__doc__ = 'Mercurial exceptions. This ...' +errorproxy.__name__ = 'mercurial.error' +errorproxy.__dict__['__name__'] = 'mercurial.error' +errorproxy = <proxied module 'error'> os = <unloaded module 'os'> os.system = <built-in function system> os = <module 'os' from '?'> @@ -19,11 +24,6 @@ re = <unloaded module 'sys'> re.stderr = <open file '<whatever>', mode 'w' at 0x?> re = <proxied module 'sys'> -pvecproxy = <unloaded module 'pvec'> -pvecproxy.__doc__ = 'A "pvec" is ...' -pvecproxy.__name__ = 'mercurial.pvec' -pvecproxy.__dict__['__name__'] = 'mercurial.pvec' -pvecproxy = <proxied module 'pvec'> contextlib = <unloaded module 'contextlib'> contextlib.unknownattr = ImportError: cannot import name unknownattr __import__('contextlib', ..., ['unknownattr']) = <module 'contextlib' from '?'>