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:
Carlos Martín Nieto 2017-07-03 15:40:29 +02:00
parent c6305a062b
commit e41f71f458
2 changed files with 3 additions and 3 deletions

View File

@ -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
/*

View File

@ -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'])