~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_btree_index.py

  • Committer: Vincent Ladeuil
  • Date: 2009-06-22 12:52:39 UTC
  • mto: (4471.1.1 integration)
  • mto: This revision was merged to the branch mainline in revision 4472.
  • Revision ID: v.ladeuil+lp@free.fr-20090622125239-kabo9smxt9c3vnir
Use a consistent scheme for naming pyrex source files.

Show diffs side-by-side

added added

removed removed

Lines of Context:
43
43
    if CompiledBtreeParserFeature.available():
44
44
        # Is there a way to do this that gets missing feature failures rather
45
45
        # than no indication to the user?
46
 
        import bzrlib._btree_serializer_c as c_module
 
46
        import bzrlib._btree_serializer_pyx as c_module
47
47
        scenarios.append(('C', {'parse_btree': c_module}))
48
48
    return multiply_tests(node_tests, scenarios, others)
49
49
 
51
51
class _CompiledBtreeParserFeature(tests.Feature):
52
52
    def _probe(self):
53
53
        try:
54
 
            import bzrlib._btree_serializer_c
 
54
            import bzrlib._btree_serializer_pyx
55
55
        except ImportError:
56
56
            return False
57
57
        return True
58
58
 
59
59
    def feature_name(self):
60
 
        return 'bzrlib._btree_serializer_c'
 
60
        return 'bzrlib._btree_serializer_pyx'
61
61
 
62
62
CompiledBtreeParserFeature = _CompiledBtreeParserFeature()
63
63