~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test__dirstate_helpers.py

Simple 'compiled with pyrex' ProcessEntry class. faster.

Show diffs side-by-side

added added

removed removed

Lines of Context:
776
776
            from bzrlib.dirstate import py_update_entry
777
777
            self.assertIs(py_update_entry, dirstate.py_update_entry)
778
778
 
 
779
    def test_process_entry(self):
 
780
        if CompiledDirstateHelpersFeature.available():
 
781
            from bzrlib._dirstate_helpers_c import ProcessEntryC
 
782
            self.assertIs(ProcessEntryC, dirstate._process_entry)
 
783
        else:
 
784
            from bzrlib.dirstate import ProcessEntryPython
 
785
            self.assertIs(ProcessEntryPython, dirstate._process_entry)
 
786
 
779
787
 
780
788
class TestUpdateEntry(test_dirstate.TestCaseWithDirState):
781
789
    """Test the DirState.update_entry functions"""