Mercurial > hgsubversion
comparison tests/test_rebuildmeta.py @ 182:47d25d61abfa
remove generators (compat with python2.3)
author | Benoit Boissinot <benoit.boissinot@ens-lyon.org> |
---|---|
date | Tue, 13 Jan 2009 15:39:22 +0100 |
parents | ba801f44d240 |
children | 13ae1bded5e7 |
comparison
equal
deleted
inserted
replaced
181:e37f9d3fd5e7 | 182:47d25d61abfa |
---|---|
69 return m | 69 return m |
70 | 70 |
71 | 71 |
72 attrs = {'_do_case': _do_case, | 72 attrs = {'_do_case': _do_case, |
73 } | 73 } |
74 for case in (f for f in os.listdir(test_util.FIXTURES) if f.endswith('.svndump')): | 74 for case in [f for f in os.listdir(test_util.FIXTURES) if f.endswith('.svndump')]: |
75 name = 'test_' + case[:-len('.svndump')] | 75 name = 'test_' + case[:-len('.svndump')] |
76 attrs[name] = buildmethod(case, name, False) | 76 attrs[name] = buildmethod(case, name, False) |
77 name += '_stupid' | 77 name += '_stupid' |
78 attrs[name] = buildmethod(case, name, True) | 78 attrs[name] = buildmethod(case, name, True) |
79 RebuildMetaTests = type('RebuildMetaTests', (test_util.TestBase, ), attrs) | 79 RebuildMetaTests = type('RebuildMetaTests', (test_util.TestBase, ), attrs) |