~ubuntu-branches/debian/sid/bzr-builddeb/sid

« back to all changes in this revision

Viewing changes to tests/test_repack_tarball.py

  • Committer: Package Import Robot
  • Author(s): Jelmer Vernooij
  • Date: 2011-08-31 03:40:12 UTC
  • Revision ID: package-import@ubuntu.com-20110831034012-kdbx4w5tre9r87xq
Tags: 2.7.8
* Improve error message when tag for upstream version can not be
  found. LP: #783882
* Cope with newer versions of bzr raising IOError rather than
  NoSuchFile error. LP: #831351, Closes: #638219

Show diffs side-by-side

added added

removed removed

Lines of Context:
129
129
        target_dir = 'tarballs'
130
130
        touch(target_dir)
131
131
        # transport gives NoSuchFile rather than NotADirectory for this
132
 
        self.assertRaises(NoSuchFile, repack_tarball, self.old_tarball,
133
 
                          self.new_tarball, target_dir=target_dir)
 
132
        self.assertRaises((IOError, NoSuchFile), repack_tarball,
 
133
                self.old_tarball, self.new_tarball, target_dir=target_dir)
134
134
        self.assertPathExists(self.old_tarball)
135
135
        self.assertPathDoesNotExist(self.new_tarball)
136
136
        self.assertPathDoesNotExist(os.path.join(target_dir, self.new_tarball))
137
137
        self.assertPathExists(target_dir)
138
 
 
139
 
 
140