Lines Matching refs:IOError
154 self.assertRaises(IOError, self.f.read)
172 self.assertRaises(IOError, getattr(self.f, attr))
177 self.assertRaises(IOError, lambda: [line for line in self.f])
182 self.assertRaises(IOError, self.f.readinto, bytearray(len(data)))
187 self.assertRaises(IOError, self.f.write, data)
191 self.assertRaises(IOError, self.f.writelines, [data, data])
195 self.assertRaises(IOError, self.f.truncate)
208 except IOError as e:
229 except (IOError, ValueError):
245 self.assertRaises(IOError, sys.stdin.seek, -1)
248 self.assertRaises(IOError, sys.stdin.truncate)
286 except IOError, msg:
440 with self.assertRaises(IOError):
443 with self.assertRaises(IOError):
448 with self.assertRaises(IOError):
567 except (IOError, ValueError):