changeset 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 6190432f1d39
children 2e2055fc66c3
files tests/test-context.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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')