changeset 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 7a1ad08b9ff5
files tests/test-hgweb-auth.py
diffstat 1 files changed, 2 insertions(+), 4 deletions(-) [+]
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: