changeset 33945:403040b5a5bd

tests: update test-bisect to pass our module import checker
author Augie Fackler <raf@durin42.com>
date Tue, 22 Aug 2017 14:58:39 -0400
parents 74e53c21fd13
children 83313639b8a4
files tests/test-bisect.t
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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