MCPcopy Index your code
hub / github.com/python/cpython / test_writerows_errors

Method test_writerows_errors

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

Source from the content-addressed store, hash-verified

357 quoting=quoting)
358
359 def test_writerows_errors(self):
360 with TemporaryFile("w+", encoding="utf-8", newline='') as fileobj:
361 writer = csv.writer(fileobj)
362 self.assertRaises(TypeError, writer.writerows, None)
363 self.assertRaises(OSError, writer.writerows, BadIterable())
364
365 def _read_test(self, input, expect, **kwargs):
366 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