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

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2009-03-13 04:41:36 UTC
  • mfrom: (4138.1.1 trunk)
  • Revision ID: pqm@pqm.ubuntu.com-20090313044136-mvoy4mgr8az583ih
(vila) Restore the test that the OSError exception raised from
        walkdirs includes the file the error occured on in its str()

Show diffs side-by-side

added added

removed removed

Lines of Context:
896
896
        e = self.assertRaises(OSError, list, osutils._walkdirs_utf8("."))
897
897
        self.assertEquals('./test-unreadable', e.filename)
898
898
        self.assertEquals(errno.EACCES, e.errno)
 
899
        # Ensure the message contains the file name
 
900
        self.assertContainsRe(str(e), "\./test-unreadable")
899
901
 
900
902
    def test__walkdirs_utf8(self):
901
903
        tree = [