Mercurial > hg
diff hgdemandimport/__init__.py @ 43283:96eb9ef777a8
run-tests: make code coverage work on Python 3
This code path was obviously not tested on Python 3 because it
blew up in several places due to str/bytes mismatch.
For internal code, we normalize paths to bytes.
For code calling into `coverage`, we normalize paths to str,
which is what `coverage` seems to expect.
After this, `run-tests.py -H` works on Python 3!
Differential Revision: https://phab.mercurial-scm.org/D7133
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Thu, 17 Oct 2019 20:40:12 -0700 |
parents | 2372284d9457 |
children | 40120de810ba |