tests: update test-bisect to pass our module import checker
authorAugie Fackler <raf@durin42.com>
Tue, 22 Aug 2017 14:58:39 -0400
changeset 33963 403040b5a5bd
parent 33962 74e53c21fd13
child 33964 83313639b8a4
tests: update test-bisect to pass our module import checker
tests/test-bisect.t
--- a/tests/test-bisect.t	Tue Aug 22 14:58:21 2017 -0400
+++ b/tests/test-bisect.t	Tue Aug 22 14:58:39 2017 -0400
@@ -462,9 +462,10 @@
 
   $ cat > script.py <<EOF
   > #!$PYTHON
+  > from __future__ import absolute_import
   > import sys
-  > from mercurial import ui, hg
-  > repo = hg.repository(ui.ui.load(), '.')
+  > from mercurial import hg, ui as uimod
+  > repo = hg.repository(uimod.ui.load(), '.')
   > if repo['.'].rev() < 6:
   >     sys.exit(1)
   > EOF