[PATCH 09 of 10] tests: update test-pager to pass our import checker
Augie Fackler
raf at durin42.com
Mon Aug 28 14:56:00 UTC 2017
# HG changeset patch
# User Augie Fackler <raf at 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
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, '-')))
More information about the Mercurial-devel
mailing list