fix error message text

This commit is contained in:
Nico von Geyso
2013-02-01 15:18:35 +01:00
parent 1b7c809c55
commit 21229cb298

View File

@@ -98,8 +98,8 @@ class ConfigTest(utils.RepoTestCase):
self.assertRaises(TypeError, lambda: config[()])
self.assertRaises(TypeError, lambda: config[-4])
self.assertRaisesWithArg(pygit2.GitError,
"Invalid variable name: 'abc'", lambda: config['abc'])
self.assertRaisesWithArg(ValueError,
"Invalid config item name 'abc'", lambda: config['abc'])
self.assertRaisesWithArg(KeyError, 'abc.def', lambda: config['abc.def'])
self.assertTrue('core.bare' in config)