~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_trace.py

  • Committer: Alexander Belchenko
  • Date: 2012-03-29 08:34:13 UTC
  • mto: (6015.44.14 2.4)
  • mto: This revision was merged to the branch mainline in revision 6513.
  • Revision ID: bialix@ukr.net-20120329083413-d4bqqdtfn2yrxp4f
change st_dev, st_ino, st_uid, st_gid from int members to properties.

Show diffs side-by-side

added added

removed removed

Lines of Context:
114
114
        msg = _format_exception()
115
115
        # Even though Windows and Linux differ for 'os.rmdir', they both give
116
116
        # 'No such file' for open()
117
 
        # However it now gets translated so we can not test for a specific message
118
117
        self.assertContainsRe(msg,
119
 
            r'^bzr: ERROR: \[Errno .*\] .*nosuchfile')
 
118
            r'^bzr: ERROR: \[Errno .*\] No such file.*nosuchfile')
120
119
 
121
120
    def test_format_pywintypes_error(self):
122
121
        self.requireFeature(features.pywintypes)
255
254
        # have to do a replaceent here as well.
256
255
        self.assertContainsRe(log, "ascii argument: \xb5".decode('utf8',
257
256
            'replace'))
258
 
 
 
257
        
259
258
    def test_show_error(self):
260
259
        show_error('error1')
261
260
        show_error(u'error2 \xb5 blah')