Mercurial > python-hglib
diff tests/test-context.py @ 113:27591b5bb9d9
tests: remove usage of assertRaisesRegexp
Usage of assertRaisesRegexp caused tests to fail on python versions prior to 2.7
author | Alexander Plavin <me@aplavin.ru> |
---|---|
date | Thu, 02 May 2013 22:11:16 +0400 |
parents | c635e6e7054f |
children | e05b0cf920bb |
line wrap: on
line diff
--- a/tests/test-context.py Thu May 02 21:44:53 2013 +0400 +++ b/tests/test-context.py Thu May 02 22:11:16 2013 +0400 @@ -4,7 +4,7 @@ class test_context(common.basetest): def test_non_existent(self): - self.assertRaisesRegexp(ValueError, 'not found', context.changectx, self.client, 'foo') + self.assertRaises(ValueError, context.changectx, self.client, 'foo') def test_basic(self): self.append('a', 'a')