Patchwork [03,of,10] tests: update test-requires to pass our import checker

login
register
mail settings
Submitter Augie Fackler
Date Aug. 28, 2017, 3:27 p.m.
Message ID <4c700816d9153f10c181.1503934051@augie-macbookpro2.roam.corp.google.com>
Download mbox | patch
Permalink /patch/23424/
State Accepted
Headers show

Comments

Augie Fackler - Aug. 28, 2017, 3:27 p.m.
# HG changeset patch
# User Augie Fackler <raf@durin42.com>
# Date 1503435557 14400
#      Tue Aug 22 16:59:17 2017 -0400
# Node ID 4c700816d9153f10c1818a5e4b9125f9f0c83223
# Parent  78b19b1d11bd083a1aeef9c99895378e93e857a5
tests: update test-requires to pass our import checker

Patch

diff --git a/tests/test-requires.t b/tests/test-requires.t
--- a/tests/test-requires.t
+++ b/tests/test-requires.t
@@ -32,7 +32,8 @@  another repository of push/pull/clone on
 
   $ echo 'featuresetup-test' >> supported/.hg/requires
   $ cat > $TESTTMP/supported-locally/supportlocally.py <<EOF
-  > from mercurial import localrepo, extensions
+  > from __future__ import absolute_import
+  > from mercurial import extensions, localrepo
   > def featuresetup(ui, supported):
   >     for name, module in extensions.extensions(ui):
   >         if __name__ == module.__name__: