~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_transport_implementations.py

  • Committer: John Arbash Meinel
  • Date: 2006-09-01 17:20:48 UTC
  • mfrom: (1948.3.13 bzr.dev)
  • mto: This revision was merged to the branch mainline in revision 1980.
  • Revision ID: john@arbash-meinel.com-20060901172048-c251ea825fa04f76
[merge] Vincent Ladeuil: cleanup of writable http changes

Show diffs side-by-side

added added

removed removed

Lines of Context:
543
543
        t.mkdir('adir')
544
544
        t.mkdir('adir/bdir')
545
545
        t.rmdir('adir/bdir')
546
 
        self.assertRaises(PathError, t.rmdir, 'adir/bdir')
 
546
        # ftp may not be able to raise NoSuchFile for lack of
 
547
        # details when failing
 
548
        self.assertRaises((NoSuchFile, PathError), t.rmdir, 'adir/bdir')
547
549
        t.rmdir('adir')
548
 
        self.assertRaises(PathError, t.rmdir, 'adir')
 
550
        self.assertRaises((NoSuchFile, PathError), t.rmdir, 'adir')
549
551
 
550
552
    def test_rmdir_not_empty(self):
551
553
        """Deleting a non-empty directory raises an exception