~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_osutils.py

  • Committer: Vincent Ladeuil
  • Date: 2009-03-13 01:10:55 UTC
  • mto: (4138.1.1 trunk)
  • mto: This revision was merged to the branch mainline in revision 4143.
  • Revision ID: v.ladeuil+lp@free.fr-20090313011055-yvqqtdejc7ferth7
Fixed as per Martin's remark about the intent of the test :-}

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 = [