~bzr-pqm/bzr/1.17

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_knit.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2009-08-10 08:40:25 UTC
  • mfrom: (4532.1.3 bzr-1.17)
  • Revision ID: pqm@pqm.ubuntu.com-20090810084025-s16u0hmj4yyirt1r
(spiv) Cherrypick _knit_load_data_pyx import fix

Show diffs side-by-side

added added

removed removed

Lines of Context:
73
73
 
74
74
    def _probe(self):
75
75
        try:
76
 
            import bzrlib._knit_load_data_c
 
76
            import bzrlib._knit_load_data_pyx
77
77
        except ImportError:
78
78
            return False
79
79
        return True
80
80
 
81
81
    def feature_name(self):
82
 
        return 'bzrlib._knit_load_data_c'
 
82
        return 'bzrlib._knit_load_data_pyx'
83
83
 
84
84
CompiledKnitFeature = _CompiledKnitFeature()
85
85
 
1316
1316
        def reset():
1317
1317
            knit._load_data = orig
1318
1318
        self.addCleanup(reset)
1319
 
        from bzrlib._knit_load_data_c import _load_data_c
 
1319
        from bzrlib._knit_load_data_pyx import _load_data_c
1320
1320
        knit._load_data = _load_data_c
1321
1321
        allow_writes = lambda: mode == 'w'
1322
1322
        return _KndxIndex(transport, mapper, lambda:None, allow_writes, lambda:True)