~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_knit.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2009-07-28 09:19:30 UTC
  • mfrom: (4573.1.2 c-extension-regression)
  • Revision ID: pqm@pqm.ubuntu.com-20090728091930-mv2rza67y8ao8roo
(andrew) Fix imports of _knit_load_data_pyx.

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)