From patchwork Mon Aug 28 14:56:00 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [09,of,10] tests: update test-pager to pass our import checker From: Augie Fackler X-Patchwork-Id: 23421 Message-Id: To: mercurial-devel@mercurial-scm.org Date: Mon, 28 Aug 2017 10:56:00 -0400 # HG changeset patch # User Augie Fackler # 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 < 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, '-')))