This is an archive of the discontinued Mercurial Phabricator instance.

py3: string normalization and I/O tweaks in test-lfs.t
ClosedPublic

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

Details

Summary

The print was inserting b'' on Python 3. In addition, since we
weren't writing to the ui instance (which isn't readily available
in this function), output order could get mixed up.

We add some pycompat casts and a stdout flush to make the test
happy on all Python 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.Jan 18 2020, 2:42 AM
pulkit accepted this revision.Jan 20 2020, 7:37 AM
This revision is now accepted and ready to land.Jan 20 2020, 7:37 AM
This revision was automatically updated to reflect the committed changes.