From patchwork Fri Aug 25 15:28:45 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: tests: update test-chg to pass our import checker From: Augie Fackler X-Patchwork-Id: 23341 Message-Id: To: mercurial-devel@mercurial-scm.org Date: Fri, 25 Aug 2017 11:28:45 -0400 # HG changeset patch # User Augie Fackler # Date 1503431360 14400 # Tue Aug 22 15:49:20 2017 -0400 # Node ID bcbb163bf16907feefb69363b5540d6b2e5c8028 # Parent 450e5c68b4f71f36ff011d972656c04416529dc4 tests: update test-chg to pass our import checker diff --git a/tests/test-chg.t b/tests/test-chg.t --- a/tests/test-chg.t +++ b/tests/test-chg.t @@ -115,7 +115,9 @@ chg waits for pager if runcommand raises > EOF $ cat > $TESTTMP/fakepager.py < import sys, time + > from __future__ import absolute_import + > import sys + > import time > for line in iter(sys.stdin.readline, ''): > if 'crash' in line: # only interested in lines containing 'crash' > # if chg exits when pager is sleeping (incorrectly), the output