diff tests/test-doctest.py @ 34218:aa877860d4d7

py3: use 'surrogatepass' error handler to process U+DCxx transparently It's disallowed by default on Python 3. https://docs.python.org/3/library/codecs.html#error-handlers
author Yuya Nishihara <yuya@tcha.org>
date Sat, 16 Sep 2017 22:55:48 +0900
parents b4abc438a8c9
children 5ce32fe7df34
line wrap: on
line diff
--- a/tests/test-doctest.py	Sat Sep 16 22:42:19 2017 +0900
+++ b/tests/test-doctest.py	Sat Sep 16 22:55:48 2017 +0900
@@ -50,7 +50,7 @@
 testmod('mercurial.context')
 testmod('mercurial.dagparser', optionflags=doctest.NORMALIZE_WHITESPACE)
 testmod('mercurial.dispatch')
-testmod('mercurial.encoding', py3=False)  # py3: multiple encoding issues
+testmod('mercurial.encoding')
 testmod('mercurial.formatter', py3=False)  # py3: write bytes to stdout
 testmod('mercurial.hg')
 testmod('mercurial.hgweb.hgwebdir_mod', py3=False)  # py3: repr(bytes) ?