Patchwork tests: update test-chg to pass our import checker

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

Comments

Augie Fackler - Aug. 25, 2017, 3:28 p.m.
# HG changeset patch
# User Augie Fackler <raf@durin42.com>
# Date 1503431360 14400
#      Tue Aug 22 15:49:20 2017 -0400
# Node ID bcbb163bf16907feefb69363b5540d6b2e5c8028
# Parent  450e5c68b4f71f36ff011d972656c04416529dc4
tests: update test-chg to pass our import checker

Patch

diff --git a/tests/test-chg.t b/tests/test-chg.t
--- a/tests/test-chg.t
+++ b/tests/test-chg.t
@@ -115,7 +115,9 @@  chg waits for pager if runcommand raises
   > EOF
 
   $ cat > $TESTTMP/fakepager.py <<EOF
-  > import sys, time
+  > from __future__ import absolute_import
+  > import sys
+  > import time
   > for line in iter(sys.stdin.readline, ''):
   >     if 'crash' in line: # only interested in lines containing 'crash'
   >         # if chg exits when pager is sleeping (incorrectly), the output