tests: fix a repr on python3 in test-extension.t
authorAugie Fackler <augie@google.com>
Fri, 12 Oct 2018 10:00:43 -0400
changeset 40183 0173ed47a873
parent 40182 b348fe5f5c36
child 40184 c3b7d9c54edd
tests: fix a repr on python3 in test-extension.t Differential Revision: https://phab.mercurial-scm.org/D4993
tests/test-extension.t
--- a/tests/test-extension.t	Fri Oct 12 10:00:14 2018 -0400
+++ b/tests/test-extension.t	Fri Oct 12 10:00:43 2018 -0400
@@ -421,8 +421,10 @@
   > EOF
   $ cat > $TESTTMP/absextroot/xsub1/xsub2/relimporter.py <<EOF
   > from __future__ import absolute_import
+  > from mercurial import pycompat
   > from ... import relimportee
-  > detail = b"this relimporter imports %r" % (relimportee.detail)
+  > detail = b"this relimporter imports %r" % (
+  >     pycompat.bytestr(relimportee.detail))
   > EOF
 
 Setup modules, which actually import extension local modules at