This is an archive of the discontinued Mercurial Phabricator instance.

tests: use unimported modules in test-demandimport.py
ClosedPublic

Authored by indygreg on Feb 1 2019, 7:48 PM.

Details

Summary

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.

Diff Detail

Repository
rHG Mercurial
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

indygreg created this revision.Feb 1 2019, 7:48 PM
This revision was automatically updated to reflect the committed changes.