test-bundle2-exchange: use error.Abort instead of util.Abort
authorYuya Nishihara <yuya@tcha.org>
Sat, 24 Mar 2018 14:09:44 +0900
changeset 37100 8489e6f68ef2
parent 37099 895f209b593b
child 37101 a9ea2b1e5c4b
test-bundle2-exchange: use error.Abort instead of util.Abort
tests/test-bundle2-exchange.t
--- a/tests/test-bundle2-exchange.t	Sat Mar 24 14:08:50 2018 +0900
+++ b/tests/test-bundle2-exchange.t	Sat Mar 24 14:09:44 2018 +0900
@@ -933,10 +933,10 @@
 
   $ cat >> $TESTTMP/locktester.py <<EOF
   > import os
-  > from mercurial import extensions, bundle2, util
+  > from mercurial import extensions, bundle2, error
   > def checklock(orig, repo, *args, **kwargs):
   >     if repo.svfs.lexists("lock"):
-  >         raise util.Abort("Lock should not be taken")
+  >         raise error.Abort("Lock should not be taken")
   >     return orig(repo, *args, **kwargs)
   > def extsetup(ui):
   >    extensions.wrapfunction(bundle2, 'processbundle', checklock)