Patchwork tests: update test-bisect to pass our module import checker

login
register
mail settings
Submitter Augie Fackler
Date Aug. 25, 2017, 3:28 p.m.
Message ID <f98d4752474fd7a49a42.1503674919@imladris.local>
Download mbox | patch
Permalink /patch/23337/
State Accepted
Headers show

Comments

Augie Fackler - Aug. 25, 2017, 3:28 p.m.
# HG changeset patch
# User Augie Fackler <raf@durin42.com>
# Date 1503428319 14400
#      Tue Aug 22 14:58:39 2017 -0400
# Node ID f98d4752474fd7a49a42944c6a8e611595af6e25
# Parent  a1744af43ccb894b35751fad0fa8062ecfcbe1d0
tests: update test-bisect to pass our module import checker

Patch

diff --git a/tests/test-bisect.t b/tests/test-bisect.t
--- a/tests/test-bisect.t
+++ b/tests/test-bisect.t
@@ -462,9 +462,10 @@  test bisecting command
 
   $ 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