( )⚙ D5798 py3: account for demand import difference between Python versions

This is an archive of the discontinued Mercurial Phabricator instance.

py3: account for demand import difference between Python versions
ClosedPublic

Authored by indygreg on Feb 1 2019, 8:17 PM.

Details

Summary

Our lazy importer for Python 3 will validate that modules are
loadable before returning a stub module object. This is different
from Python 2, which will always return a stub module object.

While we could change behavior of the Python 3 demand importer,
that seems like a problem for another day.

This commit teaches test-extension.t about that difference in
behavior.

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, 8:17 PM
This revision was automatically updated to reflect the committed changes.