changeset 37100:8489e6f68ef2

test-bundle2-exchange: use error.Abort instead of util.Abort
author Yuya Nishihara <yuya@tcha.org>
date Sat, 24 Mar 2018 14:09:44 +0900
parents 895f209b593b
children a9ea2b1e5c4b
files tests/test-bundle2-exchange.t
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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)