diff tests/test-hidden.py @ 129:bcc8390d7819

tests: remove "with" usage for 2.4 compatibility
author Matt Mackall <mpm@selenic.com>
date Thu, 31 Jul 2014 15:49:00 -0500
parents cc7569bffb26
children df808f92c0f1
line wrap: on
line diff
--- a/tests/test-hidden.py	Thu Jul 31 15:30:51 2014 -0500
+++ b/tests/test-hidden.py	Thu Jul 31 15:49:00 2014 -0500
@@ -9,8 +9,8 @@
         f.close()
         self.client.add('gna1')
         cs = self.client.commit('gna1')[1] #get id
-        with self.assertRaises(CommandError):
-            self.client.rawcommand(['debugobsolete', cs])
+        self.assertRaises(CommandError,
+                          self.client.rawcommand, ['debugobsolete', cs])
 
 
 class test_obsolete_baselib(common.basetest):