~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test__rio.py

Change all of the compiled_foo to compiled_foo_feature

Show diffs side-by-side

added added

removed removed

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