From patchwork Fri Aug 25 15:28:39 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: tests: update test-bisect to pass our module import checker From: Augie Fackler X-Patchwork-Id: 23337 Message-Id: To: mercurial-devel@mercurial-scm.org Date: Fri, 25 Aug 2017 11:28:39 -0400 # HG changeset patch # User Augie Fackler # Date 1503428319 14400 # Tue Aug 22 14:58:39 2017 -0400 # Node ID f98d4752474fd7a49a42944c6a8e611595af6e25 # Parent a1744af43ccb894b35751fad0fa8062ecfcbe1d0 tests: update test-bisect to pass our module import checker diff --git a/tests/test-bisect.t b/tests/test-bisect.t --- a/tests/test-bisect.t +++ b/tests/test-bisect.t @@ -462,9 +462,10 @@ test bisecting command $ cat > script.py < #!$PYTHON + > from __future__ import absolute_import > import sys - > from mercurial import ui, hg - > repo = hg.repository(ui.ui.load(), '.') + > from mercurial import hg, ui as uimod + > repo = hg.repository(uimod.ui.load(), '.') > if repo['.'].rev() < 6: > sys.exit(1) > EOF