tests: use unimported modules in test-demandimport.py

Authored by indygreg.

Description

tests: use unimported modules in test-demandimport.py

contextlib isn't a good module to test because it is likely already
imported by code above. Let's use modules that shouldn't have been
imported. And let's verify that with asserts.

Differential Revision: https://phab.mercurial-scm.org/D5797

Details

Committed
indygregFeb 1 2019, 4:20 PM
Differential Revision
D5797: tests: use unimported modules in test-demandimport.py
Parents
rHG3e89736b98ce: py3: conditionalize test-demandimport.py for Python 3
Branches
Unknown
Tags
Unknown