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

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

Comments

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

Patch

diff --git a/tests/test-pager.t b/tests/test-pager.t
--- a/tests/test-pager.t
+++ b/tests/test-pager.t
@@ -342,7 +342,9 @@  Put annotate in the ignore list for page
 
 Environment variables like LESS and LV are set automatically:
   $ cat > $TESTTMP/printlesslv.py <<EOF
-  > import os, sys
+  > from __future__ import absolute_import
+  > import os
+  > import sys
   > sys.stdin.read()
   > for name in ['LESS', 'LV']:
   >     sys.stdout.write(('%s=%s\n') % (name, os.environ.get(name, '-')))