summaryrefslogtreecommitdiff
path: root/test/test_repo.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_repo.py')
-rw-r--r--test/test_repo.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/test_repo.py b/test/test_repo.py
index 53cae3cd..a937836f 100644
--- a/test/test_repo.py
+++ b/test/test_repo.py
@@ -38,7 +38,8 @@ from git import (
)
from git.exc import (
BadObject,
- UnsafeOptionsUsedError,
+ UnsafeOptionError,
+ UnsafeProtocolError,
)
from git.repo.fun import touch
from test.lib import TestBase, with_rw_repo, fixture
@@ -281,7 +282,7 @@ class TestRepo(TestBase):
self.assertTrue(Repo.unsafe_options("", ["--config protocol.foo"]))
def test_clone_from_forbids_helper_urls_by_default(self):
- with self.assertRaises(UnsafeOptionsUsedError):
+ with self.assertRaises(UnsafeOptionError):
Repo.clone_from("ext::sh -c touch% /tmp/foo", "tmp")
@with_rw_repo("HEAD")