111
112
msg = _format_exception()
112
113
# Even though Windows and Linux differ for 'os.rmdir', they both give
113
114
# 'No such file' for open()
115
117
self.assertContainsRe(msg,
118
120
def test_format_pywintypes_error(self):
119
121
self.requireFeature(features.pywintypes)
122
125
win32file.RemoveDirectory('nosuchfile22222')
124
127
msg = _format_exception()
125
128
# GZ 2010-05-03: Formatting for pywintypes.error is basic, a 3-tuple
126
129
# with errno, function name, and locale error message
131
msg, "^brz: ERROR: \\(2, 'RemoveDirectory[AW]?', .*\\)")
130
133
def test_format_sockets_error(self):