Fix unit tests for Python 2.6
This commit is contained in:
@@ -121,8 +121,8 @@ class ConfigTest(utils.RepoTestCase):
|
|||||||
def test_write(self):
|
def test_write(self):
|
||||||
config = self.repo.config
|
config = self.repo.config
|
||||||
|
|
||||||
with self.assertRaises(TypeError):
|
self.assertRaises(TypeError, config.__setitem__,
|
||||||
config[()] = 'This should not work'
|
(), 'This should not work')
|
||||||
|
|
||||||
self.assertFalse('core.dummy1' in config)
|
self.assertFalse('core.dummy1' in config)
|
||||||
config['core.dummy1'] = 42
|
config['core.dummy1'] = 42
|
||||||
|
Reference in New Issue
Block a user