/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/tests/test__chunks_to_lines.py

Change all of the compiled_foo to compiled_foo_feature

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
    # parameterize all tests in this module
25
25
    import bzrlib._chunks_to_lines_py as py_module
26
26
    scenarios = [('python', {'module': py_module})]
27
 
    if compiled_chunkstolines.available():
28
 
        scenarios.append(('C', {'module': compiled_chunkstolines.module}))
 
27
    if compiled_chunkstolines_feature.available():
 
28
        scenarios.append(('C', {'module':
 
29
                                compiled_chunkstolines_feature.module}))
29
30
    else:
30
31
        # the compiled module isn't available, so we add a failing test
31
32
        class FailWithoutFeature(tests.TestCase):
32
33
            def test_fail(self):
33
 
                self.requireFeature(compiled_chunkstolines)
 
34
                self.requireFeature(compiled_chunkstolines_feature)
34
35
        standard_tests.addTest(FailWithoutFeature("test_fail"))
35
36
    return tests.multiply_tests(standard_tests, scenarios, loader.suiteClass())
36
37
 
37
38
 
38
 
compiled_chunkstolines = tests.ModuleAvailableFeature(
39
 
                            'bzrlib._chunks_to_lines_pyx')
 
39
compiled_chunkstolines_feature = tests.ModuleAvailableFeature(
 
40
                                    'bzrlib._chunks_to_lines_pyx')
40
41
 
41
42
 
42
43
class TestChunksToLines(tests.TestCase):