This is an archive of the discontinued Mercurial Phabricator instance.

tests: port test-hybridencode.py to unittest
ClosedPublic

Authored by durin42 on May 8 2018, 12:26 AM.

Details

Summary

This was done predominantly through keyboard macros in emacs, so it's
not always pretty, but it's enough to make the test easier to work
with. There's a ton of room for improvement in this file, but it would
be labor intensive and error-prone, so I went with the dumbest option
that could work, so as to avoid transcription errors.

Paranoia:

$ egrep '^    def test' tests/test-hybridencode.py | wc -l
44
$ egrep '^    def test' tests/test-hybridencode.py | sort | uniq | wc -l

so I'm pretty confident there aren't any shadowed test methods.

This fixes the test on Python 3.

Diff Detail

Repository
rHG Mercurial
Lint
Lint Skipped
Unit
Unit Tests Skipped

Event Timeline

durin42 created this revision.May 8 2018, 12:26 AM
This revision was automatically updated to reflect the committed changes.
tests/test-hybridencode.py