diff tests/test_svn_pre_commit_hooks.py @ 1555:cff81f35b31e

cleanup: reference Abort from mercurial.error instead of mercurial.util It's been there since hg 1.7 or so, which lets us avoid any need for compat shims.
author Augie Fackler <raf@durin42.com>
date Sat, 24 Mar 2018 16:39:30 -0400
parents d741f536f23a
children
line wrap: on
line diff
--- a/tests/test_svn_pre_commit_hooks.py
+++ b/tests/test_svn_pre_commit_hooks.py
@@ -3,9 +3,9 @@ import sys
 import test_util
 import unittest
 
-from mercurial import hg
 from mercurial import commands
-from mercurial import util
+from mercurial import error
+from mercurial import hg
 
 
 class TestSvnPreCommitHooks(test_util.TestBase):
@@ -28,4 +28,4 @@ class TestSvnPreCommitHooks(test_util.Te
         changes = [('narf/a', 'narf/a', 'ohai',),
                    ]
         self.commitchanges(changes)
-        self.assertRaises(util.Abort, self.pushrevisions)
+        self.assertRaises(error.Abort, self.pushrevisions)