This is an archive of the discontinued Mercurial Phabricator instance.

tests: conditionalize test-http-bad-server.t for Python 3.5
ClosedPublic

Authored by indygreg on Jan 30 2019, 3:56 PM.

Details

Summary

It appears that Python 3 introduced output buffering in the HTTP
response stack. And Python 3.6 switched from sock.makefile().write()
to sock.sendall().

So, we need to conditionalize test-http-bad-server.t to account
for the difference in behavior between Python 3.5 and 3.6.

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 30 2019, 3:56 PM
This revision was automatically updated to reflect the committed changes.