[PATCH 08 of 10] tests: update test-impexp-branch to pass our import checker

Augie Fackler raf at durin42.com
Mon Aug 28 10:42:01 EDT 2017


# HG changeset patch
# User Augie Fackler <raf at durin42.com>
# Date 1503431497 14400
#      Tue Aug 22 15:51:37 2017 -0400
# Node ID 69f5d19e016bfcc438e45382b34d18eff4135f23
# Parent  14ed1e0fc6a984318a0b5111a4c2439e596061c2
tests: update test-impexp-branch to pass our import checker

diff --git a/tests/test-impexp-branch.t b/tests/test-impexp-branch.t
--- a/tests/test-impexp-branch.t
+++ b/tests/test-impexp-branch.t
@@ -2,7 +2,9 @@
   $ echo 'strip =' >> $HGRCPATH
 
   $ cat >findbranch.py <<EOF
-  > import re, sys
+  > from __future__ import absolute_import
+  > import re
+  > import sys
   > 
   > head_re = re.compile('^#(?:(?:\\s+([A-Za-z][A-Za-z0-9_]*)(?:\\s.*)?)|(?:\\s*))$')
   > 


More information about the Mercurial-devel mailing list