comparison tests/test-demandimport.py.out @ 36237:b39f0fdb0338

tests: actually check that HGDEMANDIMPORT=disable disables demandimport At the point in the test where we were checking that the 'node' got eagerly loaded, it had already been loaded (via the pvec module), so our check wasn't doing anything (i.e. the test would pass even if you removed the line that set HGDEMANDIMPORT=disable). Let's move this test earlier so it tests what it was meant to test. Differential Revision: https://phab.mercurial-scm.org/D2286
author Martin von Zweigbergk <martinvonz@google.com>
date Fri, 16 Feb 2018 11:30:18 -0800
parents 91a2ec8e7fa0
children c2c5f9f6fa21
comparison
equal deleted inserted replaced
36236:564dec70b50c 36237:b39f0fdb0338
1 node = <module 'mercurial.node' from '?'>
1 os = <unloaded module 'os'> 2 os = <unloaded module 'os'>
2 os.system = <built-in function system> 3 os.system = <built-in function system>
3 os = <module 'os' from '?'> 4 os = <module 'os' from '?'>
4 util = <unloaded module 'util'> 5 util = <unloaded module 'util'>
5 util.system = <function system at 0x?> 6 util.system = <function system at 0x?>
25 pvecproxy = <proxied module 'pvec'> 26 pvecproxy = <proxied module 'pvec'>
26 contextlib = <unloaded module 'contextlib'> 27 contextlib = <unloaded module 'contextlib'>
27 contextlib.unknownattr = ImportError: cannot import name unknownattr 28 contextlib.unknownattr = ImportError: cannot import name unknownattr
28 __import__('contextlib', ..., ['unknownattr']) = <module 'contextlib' from '?'> 29 __import__('contextlib', ..., ['unknownattr']) = <module 'contextlib' from '?'>
29 hasattr(contextlibimp, 'unknownattr') = False 30 hasattr(contextlibimp, 'unknownattr') = False
30 node = <module 'mercurial.node' from '?'>