D4993: tests: fix a repr on python3 in test-extension.t

durin42 (Augie Fackler) phabricator at mercurial-scm.org
Fri Oct 12 11:23:59 EDT 2018


durin42 updated this revision to Diff 11893.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D4993?vs=11875&id=11893

REVISION DETAIL
  https://phab.mercurial-scm.org/D4993

AFFECTED FILES
  tests/test-extension.t

CHANGE DETAILS

diff --git a/tests/test-extension.t b/tests/test-extension.t
--- a/tests/test-extension.t
+++ b/tests/test-extension.t
@@ -407,8 +407,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



To: durin42, #hg-reviewers, pulkit
Cc: mercurial-devel


More information about the Mercurial-devel mailing list