This is an archive of the discontinued Mercurial Phabricator instance.

tests: conditionalize output for Python 3
ClosedPublic

Authored by indygreg on Oct 4 2019, 3:54 PM.

Details

Summary

It appears that the random.randint() behavior is different between Python 2
and Python 3. So make the test conditional on that.

This makes the test pass on Python 3.7 (and presumably other Python 3 versions).

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.Oct 4 2019, 3:54 PM
indygreg set the repository for this revision to rHG Mercurial.Oct 6 2019, 10:40 AM
pulkit accepted this revision.Oct 6 2019, 10:44 AM
This revision is now accepted and ready to land.Oct 6 2019, 10:44 AM
This revision was automatically updated to reflect the committed changes.