~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_trace.py

  • Committer: Martin Packman
  • Date: 2011-10-14 18:42:17 UTC
  • mto: This revision was merged to the branch mainline in revision 6235.
  • Revision ID: martin.packman@canonical.com-20111014184217-2fmnziqqo4duhgbz
Remove unneeded _LRUNode.cleanup callback ability and deprecate LRUCache.add

Show diffs side-by-side

added added

removed removed

Lines of Context:
113
113
        msg = _format_exception()
114
114
        # Even though Windows and Linux differ for 'os.rmdir', they both give
115
115
        # 'No such file' for open()
 
116
        # However it now gets translated so we can not test for a specific message
116
117
        self.assertContainsRe(msg,
117
 
            r'^bzr: ERROR: \[Errno .*\] No such file.*nosuchfile')
 
118
            r'^bzr: ERROR: \[Errno .*\] .*nosuchfile')
118
119
 
119
120
    def test_format_pywintypes_error(self):
120
121
        self.requireFeature(features.pywintypes)