changeset 33989:dcfa83652744

tests: update test-pager to pass our import checker
author Augie Fackler <raf@durin42.com>
date Tue, 22 Aug 2017 16:58:57 -0400
parents a65f928e47d5
children b1f75d8e887a
files tests/test-pager.t
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-pager.t	Tue Aug 22 16:58:52 2017 -0400
+++ b/tests/test-pager.t	Tue Aug 22 16:58:57 2017 -0400
@@ -342,7 +342,9 @@
 
 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, '-')))