# HG changeset patch # User Yuya Nishihara # Date 2016-04-05 14:35:45 # Node ID d466facc5a6e662c31185a5dc3cb8beba71e0c42 # Parent e155b8d5e3b72773966edc54e22308552979b95a tests: alias ui as uimod in test-revlog-ancestry/test-ui-verbosity diff --git a/tests/test-revlog-ancestry.py b/tests/test-revlog-ancestry.py --- a/tests/test-revlog-ancestry.py +++ b/tests/test-revlog-ancestry.py @@ -3,10 +3,10 @@ import os from mercurial import ( hg, merge, - ui, + ui as uimod, ) -u = ui.ui() +u = uimod.ui() repo = hg.repository(u, 'test1', create=1) os.chdir('test1') diff --git a/tests/test-ui-verbosity.py b/tests/test-ui-verbosity.py --- a/tests/test-ui-verbosity.py +++ b/tests/test-ui-verbosity.py @@ -1,7 +1,9 @@ from __future__ import absolute_import, print_function import os -from mercurial import ui +from mercurial import ( + ui as uimod, +) hgrc = os.environ['HGRCPATH'] f = open(hgrc) @@ -30,7 +32,7 @@ for i in xrange(64): f.write('debug = True\n') f.close() - u = ui.ui() + u = uimod.ui() if cmd_quiet or cmd_debug or cmd_verbose: u.setconfig('ui', 'quiet', str(bool(cmd_quiet))) u.setconfig('ui', 'verbose', str(bool(cmd_verbose)))