/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_smart.py

  • Committer: Martin Pool
  • Date: 2007-04-26 07:48:05 UTC
  • mto: (2420.2.2 bzr.http.auth)
  • mto: This revision was merged to the branch mainline in revision 2462.
  • Revision ID: mbp@sourcefrog.net-20070426074805-va53nylsxqt7ur7u
Repository.tarball fixes for python2.4

Use 'r|bz2' to extract since r:bz2 is not supported
Replace extractall, which is not in python2.4
RemoteRepository._get_tarball returns a TemporaryFile
-------------- This line and the following will be ignored --------------

modified:
  bzrlib/remote.py
  bzrlib/tests/test_remote.py
  bzrlib/tests/test_smart.py

Show diffs side-by-side

added added

removed removed

Lines of Context:
756
756
        # body should be a tbz2
757
757
        body_file = StringIO(response.body)
758
758
        body_tar = tarfile.open('body_tar.tbz2', fileobj=body_file,
759
 
            mode='r:bz2')
 
759
            mode='r|bz2')
760
760
        # let's make sure there are some key repository components inside it.
761
761
        # the tarfile returns directories with trailing slashes...
762
762
        names = set([n.rstrip('/') for n in body_tar.getnames()])