This is an archive of the discontinued Mercurial Phabricator instance.

py3: make flush() line optional
Needs RevisionPublic

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

Details

Reviewers
pulkit
marmoute
Group Reviewers
hg-reviewers
Summary

This line only appears on Python 3.5, not on 2.7 or 3.6+. Why, I have
no clue. I suspect a weird regression in the bowels of Python's
I/O system.

Our test format doesn't support combining conditionals. So I add
pyexactXY checks to check for an exact major.minor Python version.
Sadly, this won't be the only test requiring an exception for
Python 3.5.

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, 8:58 AM
This revision is now accepted and ready to land.Jan 20 2020, 8:58 AM
pulkit added inline comments.Jan 20 2020, 9:03 AM
tests/test-ssh-proto.t
114

Reviewing later patches, I see that (py3 no-py3.6) can be used for this.

marmoute requested changes to this revision.Feb 5 2020, 6:06 PM
marmoute added a subscriber: marmoute.
marmoute added inline comments.
tests/hghave.py
783

can we pre-generate more python version ? It help running "current" extension test againts "older" mercurial version.

tests/test-ssh-proto.t
114

+1 are we missing anything that prevent this to be used?

This revision now requires changes to proceed.Feb 5 2020, 6:06 PM