# HG changeset patch # User Alexander Plavin # Date 1367518276 -14400 # Node ID 27591b5bb9d926af15fb789b8ea862a8a6aeb6c5 # Parent 6190432f1d39bf27a4a8976a2121c5be87e32000 tests: remove usage of assertRaisesRegexp Usage of assertRaisesRegexp caused tests to fail on python versions prior to 2.7 diff -r 6190432f1d39 -r 27591b5bb9d9 tests/test-context.py --- 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')