Update for libgit2 v0.26
The API isn't changing as much recently so all we needed to adjust was the proper capitalisation of the error string.
This commit is contained in:
parent
c6305a062b
commit
e41f71f458
@ -32,8 +32,8 @@
|
||||
#include <Python.h>
|
||||
#include <git2.h>
|
||||
|
||||
#if !(LIBGIT2_VER_MAJOR == 0 && LIBGIT2_VER_MINOR == 25)
|
||||
#error You need a compatible libgit2 version (v0.25.x)
|
||||
#if !(LIBGIT2_VER_MAJOR == 0 && LIBGIT2_VER_MINOR == 26)
|
||||
#error You need a compatible libgit2 version (v0.26.x)
|
||||
#endif
|
||||
|
||||
/*
|
||||
|
@ -97,7 +97,7 @@ class ConfigTest(utils.RepoTestCase):
|
||||
|
||||
self.assertRaises(TypeError, lambda: config[()])
|
||||
self.assertRaises(TypeError, lambda: config[-4])
|
||||
self.assertRaisesWithArg(ValueError, "Invalid config item name 'abc'",
|
||||
self.assertRaisesWithArg(ValueError, "invalid config item name 'abc'",
|
||||
lambda: config['abc'])
|
||||
self.assertRaisesWithArg(KeyError, 'abc.def',
|
||||
lambda: config['abc.def'])
|
||||
|
Loading…
Reference in New Issue
Block a user