This is an archive of the discontinued Mercurial Phabricator instance.

py3: wallpaper over demand importer differences on Python 3.5
AcceptedPublic

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

Details

Reviewers
pulkit
Group Reviewers
hg-reviewers
Summary

For some reason, Python 3.5 and only Python 3.5's demand importer
is importing extra parent modules. This is causing test output
on 3.5 to diverge.

While I'm not thrilled about the divergence in behavior, I don't
think it is critical enough to warrant fixing in code. So this
commit teaches our test to recognize the divergent behavior on
Python 3.5.

Because the test format doesn't support conditional exit codes and
we were already inside an #if (it also doesn't allow nested #ifs),
I added a || false to normalize the exit code. The actual exit
code shouldn't matter here, as we have tests for that elsewhere.

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, 9:01 AM
pulkit added a subscriber: pulkit.

I added a || false to normalize the exit code.

s/false/true in flight

This revision is now accepted and ready to land.Jan 20 2020, 9:01 AM