Page MenuHomePhabricator

tests: convert ParseError arguments to str on Python 3
ClosedPublic

Authored by indygreg on Feb 1 2019, 12:14 PM.

Details

Summary

Arguments internally are bytes. Printing the exception on Python 3
will include b'' prefixes. This test file uses a .out file, which
doesn't support conditional output. The easiest way to get this to
pass on Python 3 is to normalize the exception before printing so
there are no b'' prefixes.

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.Feb 1 2019, 12:14 PM
This revision was automatically updated to reflect the committed changes.