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

Method test_write_iterable

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

Source from the content-addressed store, hash-verified

273 f'"\r","\n"{lineterminator}')
274
275 def test_write_iterable(self):
276 self._write_test(iter(['a', 1, 'p,q']), 'a,1,"p,q"')
277 self._write_test(iter(['a', 1, None]), 'a,1,')
278 self._write_test(iter([]), '')
279 self._write_test(iter([None]), '""')
280 self._write_error_test(csv.Error, iter([None]), quoting=csv.QUOTE_NONE)
281 self._write_test(iter([None, None]), ',')
282
283 def test_writerows(self):
284 class BrokenFile:

Callers

nothing calls this directly

Calls 2

_write_testMethod · 0.95
_write_error_testMethod · 0.95

Tested by

no test coverage detected