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

login
register
mail settings
Submitter Augie Fackler
Date Aug. 28, 2017, 2:42 p.m.
Message ID <69f5d19e016bfcc438e4.1503931321@augie-macbookpro2.roam.corp.google.com>
Download mbox | patch
Permalink /patch/23409/
State Accepted
Headers show

Comments

Augie Fackler - Aug. 28, 2017, 2:42 p.m.
# HG changeset patch
# User Augie Fackler <raf@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

Patch

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*))$')
   >