diff tests/test-extension.t @ 40183:0173ed47a873

tests: fix a repr on python3 in test-extension.t Differential Revision: https://phab.mercurial-scm.org/D4993
author Augie Fackler <augie@google.com>
date Fri, 12 Oct 2018 10:00:43 -0400
parents b348fe5f5c36
children c3b7d9c54edd
line wrap: on
line diff
--- 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