This is an archive of the discontinued Mercurial Phabricator instance.

py3: glob over exception in test-check-py3-compat.t
ClosedPublic

Authored by indygreg on Jan 18 2020, 2:42 AM.

Details

Summary

Python 3.6+ raise ModuleNotFoundError and older versions raise
ImportError. Glob over the exception differences.

For whatever reason, we were already doing this for one failure.
But not all occurrences of ModuleNotFoundError were changed.
Who knows.

This test should now pass on all Python versions (although I didn't
check Windows).

Diff Detail

Repository
rHG Mercurial
Branch
default
Lint
No Linters Available
Unit
No Unit Test Coverage

Event Timeline

indygreg created this revision.Jan 18 2020, 2:42 AM
pulkit accepted this revision.Jan 20 2020, 7:38 AM
This revision is now accepted and ready to land.Jan 20 2020, 7:38 AM
This revision was automatically updated to reflect the committed changes.