Fix unit tests for Python 2.6

This commit is contained in:
J. David Ibáñez 2012-06-18 11:08:46 -03:00
parent d2a27eddf1
commit 9ba2324535

@ -121,8 +121,8 @@ class ConfigTest(utils.RepoTestCase):
def test_write(self):
config = self.repo.config
with self.assertRaises(TypeError):
config[()] = 'This should not work'
self.assertRaises(TypeError, config.__setitem__,
(), 'This should not work')
self.assertFalse('core.dummy1' in config)
config['core.dummy1'] = 42