Mercurial > public > mercurial-scm > hg-stable
diff contrib/python3-whitelist @ 37915:6574c81b6831
tests: port test-hybridencode.py to unittest
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.
Differential Revision: https://phab.mercurial-scm.org/D3466
author | Augie Fackler <augie@google.com> |
---|---|
date | Thu, 26 Apr 2018 23:33:27 -0400 |
parents | 39c17718f311 |
children | 078c3eec2d5c |
line wrap: on
line diff