comparison tests/test-pager.t @ 33971: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 cc047a733f69
children 31a2eb0f74e5
comparison
equal deleted inserted replaced
33970:a65f928e47d5 33971:dcfa83652744
340 9: a 9 340 9: a 9
341 10: a 10 341 10: a 10
342 342
343 Environment variables like LESS and LV are set automatically: 343 Environment variables like LESS and LV are set automatically:
344 $ cat > $TESTTMP/printlesslv.py <<EOF 344 $ cat > $TESTTMP/printlesslv.py <<EOF
345 > import os, sys 345 > from __future__ import absolute_import
346 > import os
347 > import sys
346 > sys.stdin.read() 348 > sys.stdin.read()
347 > for name in ['LESS', 'LV']: 349 > for name in ['LESS', 'LV']:
348 > sys.stdout.write(('%s=%s\n') % (name, os.environ.get(name, '-'))) 350 > sys.stdout.write(('%s=%s\n') % (name, os.environ.get(name, '-')))
349 > sys.stdout.flush() 351 > sys.stdout.flush()
350 > EOF 352 > EOF