Mercurial > python-hglib
comparison 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 |
comparison
equal
deleted
inserted
replaced
128:838c5a91ed44 | 129:bcc8390d7819 |
---|---|
7 f = open('gna1','w') | 7 f = open('gna1','w') |
8 f.write('g') | 8 f.write('g') |
9 f.close() | 9 f.close() |
10 self.client.add('gna1') | 10 self.client.add('gna1') |
11 cs = self.client.commit('gna1')[1] #get id | 11 cs = self.client.commit('gna1')[1] #get id |
12 with self.assertRaises(CommandError): | 12 self.assertRaises(CommandError, |
13 self.client.rawcommand(['debugobsolete', cs]) | 13 self.client.rawcommand, ['debugobsolete', cs]) |
14 | 14 |
15 | 15 |
16 class test_obsolete_baselib(common.basetest): | 16 class test_obsolete_baselib(common.basetest): |
17 """base test class with obsolete changesets enabled""" | 17 """base test class with obsolete changesets enabled""" |
18 def setUp(self): | 18 def setUp(self): |