~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_errors.py

  • Committer: Robert Collins
  • Date: 2010-07-04 06:22:11 UTC
  • mto: This revision was merged to the branch mainline in revision 5332.
  • Revision ID: robertc@robertcollins.net-20100704062211-tk9hw6bnsn5x47fm
``bzrlib.lsprof.profile`` will no longer silently generate bad threaded
profiles when concurrent profile requests are made. Instead the profile
requests will be serialised. Reentrant requests will now deadlock.
(Robert Collins)

Show diffs side-by-side

added added

removed removed

Lines of Context:
703
703
            str(e), 'Unprintable exception ErrorWithBadFormat')
704
704
 
705
705
    def test_cannot_bind_address(self):
706
 
        # see <https://bugs.edge.launchpad.net/bzr/+bug/286871>
 
706
        # see <https://bugs.launchpad.net/bzr/+bug/286871>
707
707
        e = errors.CannotBindAddress('example.com', 22,
708
708
            socket.error(13, 'Permission denied'))
709
709
        self.assertContainsRe(str(e),
713
713
        e = errors.FileTimestampUnavailable("/path/foo")
714
714
        self.assertEquals("The filestamp for /path/foo is not available.",
715
715
            str(e))
 
716
            
 
717
    def test_transform_rename_failed(self):
 
718
        e = errors.TransformRenameFailed(u"from", u"to", "readonly file", 2)
 
719
        self.assertEquals(
 
720
            u"Failed to rename from to to: readonly file",
 
721
            str(e))