~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test__chk_map.py

Change all of the compiled_foo to compiled_foo_feature

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
    suite = loader.suiteClass()
30
30
    import bzrlib._chk_map_py as py_module
31
31
    scenarios = [('python', {'module': py_module})]
32
 
    if compiled_chkmap.available():
33
 
        scenarios.append(('C', {'module': compiled_chkmap.module}))
 
32
    if compiled_chkmap_feature.available():
 
33
        scenarios.append(('C', {'module': compiled_chkmap_feature.module}))
34
34
    else:
35
35
        # the compiled module isn't available, so we add a failing test
36
36
        class FailWithoutFeature(tests.TestCase):
37
37
            def test_fail(self):
38
 
                self.requireFeature(compiled_chkmap)
 
38
                self.requireFeature(compiled_chkmap_feature)
39
39
        suite.addTest(loader.loadTestsFromTestCase(FailWithoutFeature))
40
40
    tests.multiply_tests(standard_tests, scenarios, suite)
41
41
    return suite
42
42
 
43
43
 
44
 
compiled_chkmap = tests.ModuleAvailableFeature('bzrlib._chk_map_pyx')
 
44
compiled_chkmap_feature = tests.ModuleAvailableFeature('bzrlib._chk_map_pyx')
45
45
 
46
46
 
47
47
class TestSearchKeys(tests.TestCase):