Page MenuHomePhabricator

tests: make doctests not depend on str(ParseError()) format
ClosedPublic

Authored by martinvonz on Fri, Nov 20, 7:24 PM.

Details

Summary

ParseError implements __bytes__, but it doesn't implement
__str__, so it gets the default __str__ implementation. The next
patch will make it so ParseError gets a __str__ implementation,
which changes the format slightly. This prepares by making us not
depend on the format.

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

martinvonz created this revision.Fri, Nov 20, 7:24 PM
mharbison72 accepted this revision.Fri, Nov 20, 9:45 PM
This revision is now accepted and ready to land.Fri, Nov 20, 9:45 PM