Mercurial > public > mercurial-scm > hg-stable
diff tests/test-hgweb-auth.py @ 28808:10c2ce44c35d
test-hgweb-auth: stop direct symbol import of mercurial.error.Abort
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Tue, 05 Apr 2016 23:21:17 +0900 |
parents | 736f64b23a24 |
children | 032c4c2f802a |
line wrap: on
line diff
--- 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: