Details
Details
- Reviewers
pulkit - Group Reviewers
hg-reviewers - Commits
- rHG0173ed47a873: tests: fix a repr on python3 in test-extension.t
Diff Detail
Diff Detail
- Repository
- rHG Mercurial
- Lint
Lint Skipped - Unit
Unit Tests Skipped
( )
| pulkit |
| hg-reviewers |
| Lint Skipped |
| Unit Tests Skipped |
| Path | Packages | |||
|---|---|---|---|---|
| M | tests/test-extension.t (4 lines) |
| Commit | Parents | Author | Summary | Date |
|---|---|---|---|---|
| Augie Fackler | Oct 12 2018, 10:00 AM |
| Setup extension local modules to examine whether demand importing | Setup extension local modules to examine whether demand importing | ||||
| works as expected in "level > 1" case. | works as expected in "level > 1" case. | ||||
| $ cat > $TESTTMP/absextroot/relimportee.py <<EOF | $ cat > $TESTTMP/absextroot/relimportee.py <<EOF | ||||
| > detail = b"this is absextroot.relimportee" | > detail = b"this is absextroot.relimportee" | ||||
| > EOF | > EOF | ||||
| $ cat > $TESTTMP/absextroot/xsub1/xsub2/relimporter.py <<EOF | $ cat > $TESTTMP/absextroot/xsub1/xsub2/relimporter.py <<EOF | ||||
| > from __future__ import absolute_import | > from __future__ import absolute_import | ||||
| > from mercurial import pycompat | |||||
| > from ... import relimportee | > from ... import relimportee | ||||
| > detail = b"this relimporter imports %r" % (relimportee.detail) | > detail = b"this relimporter imports %r" % ( | ||||
| > pycompat.bytestr(relimportee.detail)) | |||||
| > EOF | > EOF | ||||
| Setup modules, which actually import extension local modules at | Setup modules, which actually import extension local modules at | ||||
| runtime. | runtime. | ||||
| $ cat > $TESTTMP/absextroot/absolute.py << EOF | $ cat > $TESTTMP/absextroot/absolute.py << EOF | ||||
| > from __future__ import absolute_import | > from __future__ import absolute_import | ||||
| > | > | ||||