tests/test-extension.t
changeset 40183 0173ed47a873
parent 40182 b348fe5f5c36
child 40184 c3b7d9c54edd
equal deleted inserted replaced
40182:b348fe5f5c36 40183:0173ed47a873
   419   $ cat > $TESTTMP/absextroot/relimportee.py <<EOF
   419   $ cat > $TESTTMP/absextroot/relimportee.py <<EOF
   420   > detail = b"this is absextroot.relimportee"
   420   > detail = b"this is absextroot.relimportee"
   421   > EOF
   421   > EOF
   422   $ cat > $TESTTMP/absextroot/xsub1/xsub2/relimporter.py <<EOF
   422   $ cat > $TESTTMP/absextroot/xsub1/xsub2/relimporter.py <<EOF
   423   > from __future__ import absolute_import
   423   > from __future__ import absolute_import
       
   424   > from mercurial import pycompat
   424   > from ... import relimportee
   425   > from ... import relimportee
   425   > detail = b"this relimporter imports %r" % (relimportee.detail)
   426   > detail = b"this relimporter imports %r" % (
       
   427   >     pycompat.bytestr(relimportee.detail))
   426   > EOF
   428   > EOF
   427 
   429 
   428 Setup modules, which actually import extension local modules at
   430 Setup modules, which actually import extension local modules at
   429 runtime.
   431 runtime.
   430 
   432