~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_repository.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2008-09-29 08:49:52 UTC
  • mfrom: (3741.2.1 trunk)
  • Revision ID: pqm@pqm.ubuntu.com-20080929084952-3d81d63rru8tt8mm
(vila) Fix python-2.6 various compatibility issues

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
also see this file.
23
23
"""
24
24
 
25
 
import md5
26
25
from stat import S_ISDIR
27
26
from StringIO import StringIO
28
27
 
53
52
    bzrdir,
54
53
    errors,
55
54
    inventory,
 
55
    osutils,
56
56
    progress,
57
57
    repository,
58
58
    revision as _mod_revision,
981
981
            index_class=BTreeGraphIndex)
982
982
        self.assertIsInstance(pack.revision_index, BTreeBuilder)
983
983
        self.assertIsInstance(pack.inventory_index, BTreeBuilder)
984
 
        self.assertIsInstance(pack._hash, type(md5.new()))
 
984
        self.assertIsInstance(pack._hash, type(osutils.md5()))
985
985
        self.assertTrue(pack.upload_transport is upload_transport)
986
986
        self.assertTrue(pack.index_transport is index_transport)
987
987
        self.assertTrue(pack.pack_transport is pack_transport)