# HG changeset patch # User Yuya Nishihara # Date 1459866077 -32400 # Node ID 10c2ce44c35dcb0484da29c53dd8f2186e5aa553 # Parent 736f64b23a24df2b9011c1dbc219bec3bc5410e4 test-hgweb-auth: stop direct symbol import of mercurial.error.Abort diff -r 736f64b23a24 -r 10c2ce44c35d tests/test-hgweb-auth.py --- a/tests/test-hgweb-auth.py Tue Apr 05 23:20:04 2016 +0900 +++ b/tests/test-hgweb-auth.py Tue Apr 05 23:21:17 2016 +0900 @@ -3,13 +3,11 @@ from mercurial import demandimport; demandimport.enable() import urllib2 from mercurial import ( + error, ui as uimod, url, util, ) -from mercurial.error import ( - Abort, -) class myui(uimod.ui): def interactive(self): @@ -48,7 +46,7 @@ if authinfo is not None: pm.add_password(*authinfo) print(' ', pm.find_user_password('test', u)) - except Abort: + except error.Abort: print(' ','abort') if not urls: