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

login
register
mail settings
Submitter Augie Fackler
Date Aug. 28, 2017, 2:55 p.m.
Message ID <889fedb3b2a228cdf699.1503932159@augie-macbookpro2.roam.corp.google.com>
Download mbox | patch
Permalink /patch/23418/
State Accepted
Headers show

Comments

Augie Fackler - Aug. 28, 2017, 2:55 p.m.
# HG changeset patch
# User Augie Fackler <raf@durin42.com>
# Date 1503435532 14400
#      Tue Aug 22 16:58:52 2017 -0400
# Node ID 889fedb3b2a228cdf6998ab6825c5ebec337eb02
# Parent  c34b3b4fbd7ebb6094836b71896530a7281cf01c
tests: update test-obsolete to pass our import checker

Patch

diff --git a/tests/test-obsolete.t b/tests/test-obsolete.t
--- a/tests/test-obsolete.t
+++ b/tests/test-obsolete.t
@@ -1207,8 +1207,9 @@  Test issue 4506
 Test heads computation on pending index changes with obsolescence markers
   $ cd ..
   $ cat >$TESTTMP/test_extension.py  << EOF
+  > from __future__ import absolute_import
+  > from mercurial.i18n import _
   > from mercurial import cmdutil, registrar
-  > from mercurial.i18n import _
   > 
   > cmdtable = {}
   > command = registrar.command(cmdtable)