MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_writerows_errors

Method test_writerows_errors

Lib/test/test_csv.py:367–371  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

365 quoting=quoting)
366
367 def test_writerows_errors(self):
368 with TemporaryFile("w+", encoding="utf-8", newline='') as fileobj:
369 writer = csv.writer(fileobj)
370 self.assertRaises(TypeError, writer.writerows, None)
371 self.assertRaises(OSError, writer.writerows, BadIterable())
372
373 def _read_test(self, input, expect, **kwargs):
374 reader = csv.reader(input, **kwargs)

Callers

nothing calls this directly

Calls 4

TemporaryFileFunction · 0.90
BadIterableClass · 0.70
writerMethod · 0.45
assertRaisesMethod · 0.45

Tested by

no test coverage detected