Mercurial > hg
diff 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 |
line wrap: on
line diff
--- a/tests/test-demandimport.py.out Thu Jan 04 16:29:07 2018 -0800 +++ b/tests/test-demandimport.py.out Fri Feb 16 11:30:18 2018 -0800 @@ -1,3 +1,4 @@ +node = <module 'mercurial.node' from '?'> os = <unloaded module 'os'> os.system = <built-in function system> os = <module 'os' from '?'> @@ -27,4 +28,3 @@ contextlib.unknownattr = ImportError: cannot import name unknownattr __import__('contextlib', ..., ['unknownattr']) = <module 'contextlib' from '?'> hasattr(contextlibimp, 'unknownattr') = False -node = <module 'mercurial.node' from '?'>