Fix reference test case
Now git_reference_lookup says "foo" is an invalid reference name (returns GITERR_REFERENCE instead of GIT_ENOTFOUND).
This commit is contained in:
parent
5251343ee7
commit
ad8103bc48
@ -67,7 +67,7 @@ class ReferencesTest(utils.RepoTestCase):
|
||||
repo = self.repo
|
||||
|
||||
# Raise KeyError ?
|
||||
self.assertRaises(KeyError, repo.lookup_reference, 'foo')
|
||||
self.assertRaises(KeyError, repo.lookup_reference, 'refs/foo')
|
||||
|
||||
# Test a lookup
|
||||
reference = repo.lookup_reference('refs/heads/master')
|
||||
|
Loading…
x
Reference in New Issue
Block a user