/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__known_graph.py

Change all of the compiled_foo to compiled_foo_feature

Show diffs side-by-side

added added

removed removed

Lines of Context:
37
37
        ('python-nocache', {'module': _known_graph_py, 'do_cache': False}),
38
38
    ]
39
39
    suite = loader.suiteClass()
40
 
    if compiled_known_graph.available():
41
 
        scenarios.append(('C', {'module': compiled_known_graph.module,
 
40
    if compiled_known_graph_feature.available():
 
41
        scenarios.append(('C', {'module': compiled_known_graph_feature.module,
42
42
                                'do_cache': True}))
43
43
        caching_scenarios.append(
44
 
            ('C-nocache', {'module': compiled_known_graph.module,
 
44
            ('C-nocache', {'module': compiled_known_graph_feature.module,
45
45
                           'do_cache': False}))
46
46
    else:
47
47
        # the compiled module isn't available, so we add a failing test
48
48
        class FailWithoutFeature(tests.TestCase):
49
49
            def test_fail(self):
50
 
                self.requireFeature(compiled_known_graph)
 
50
                self.requireFeature(compiled_known_graph_feature)
51
51
        suite.addTest(loader.loadTestsFromTestCase(FailWithoutFeature))
52
52
    # TestKnownGraphHeads needs to be permutated with and without caching.
53
53
    # All other TestKnownGraph tests only need to be tested across module
59
59
    return suite
60
60
 
61
61
 
62
 
compiled_known_graph = tests.ModuleAvailableFeature('bzrlib._known_graph_pyx')
 
62
compiled_known_graph_feature = tests.ModuleAvailableFeature(
 
63
                                    'bzrlib._known_graph_pyx')
63
64
 
64
65
 
65
66
#  a