test-hgweb-auth: stop direct symbol import of mercurial.error.Abort
authorYuya Nishihara <yuya@tcha.org>
Tue, 05 Apr 2016 23:21:17 +0900
changeset 28808 10c2ce44c35d
parent 28807 736f64b23a24
child 28809 7a1ad08b9ff5
test-hgweb-auth: stop direct symbol import of mercurial.error.Abort
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: