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

Method test_write_iterable

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

Source from the content-addressed store, hash-verified

279
280 @unittest.expectedFailure # TODO: RUSTPYTHON
281 def test_write_iterable(self):
282 self._write_test(iter(['a', 1, 'p,q']), 'a,1,"p,q"')
283 self._write_test(iter(['a', 1, None]), 'a,1,')
284 self._write_test(iter([]), '')
285 self._write_test(iter([None]), '""')
286 self._write_error_test(csv.Error, iter([None]), quoting=csv.QUOTE_NONE)
287 self._write_test(iter([None, None]), ',')
288
289 def test_writerows(self):
290 class BrokenFile:

Callers

nothing calls this directly

Calls 3

_write_testMethod · 0.95
_write_error_testMethod · 0.95
iterFunction · 0.85

Tested by

no test coverage detected