/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_repository.py

  • Committer: Vincent Ladeuil
  • Date: 2007-11-20 14:10:50 UTC
  • mto: (3928.1.1 bzr.integration)
  • mto: This revision was merged to the branch mainline in revision 3929.
  • Revision ID: v.ladeuil+lp@free.fr-20071120141050-21w0pnh2ydu94vzh
New files, same warnings, same fixes.

* bzrlib/util/configobj/configobj.py:
(ConfigObjError.__init__): Use msg instead of message (2.6
deprecation).

* bzrlib/errors.py:
(BzrCheckError, ParseConfigError.__init__): Use msg instead of
message (2.6 deprecation).

* bzrlib/tests/test_repository.py: 
Update md5 import, fix use.

* bzrlib/repofmt/pack_repo.py: 
Update md5 import, fix use. Fix some import ordering too.

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
 
47
46
    bzrdir,
48
47
    errors,
49
48
    inventory,
 
49
    osutils,
50
50
    repository,
51
51
    revision as _mod_revision,
52
52
    symbol_versioning,
1387
1387
            pack_transport)
1388
1388
        self.assertIsInstance(pack.revision_index, InMemoryGraphIndex)
1389
1389
        self.assertIsInstance(pack.inventory_index, InMemoryGraphIndex)
1390
 
        self.assertIsInstance(pack._hash, type(md5.new()))
 
1390
        self.assertIsInstance(pack._hash, type(osutils.md5()))
1391
1391
        self.assertTrue(pack.upload_transport is upload_transport)
1392
1392
        self.assertTrue(pack.index_transport is index_transport)
1393
1393
        self.assertTrue(pack.pack_transport is pack_transport)