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

Method test_read_skipinitialspace

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

Source from the content-addressed store, hash-verified

461 quoting=csv.QUOTE_STRINGS, escapechar='\\')
462
463 def test_read_skipinitialspace(self):
464 self._read_test(['no space, space, spaces,\ttab'],
465 [['no space', 'space', 'spaces', '\ttab']],
466 skipinitialspace=True)
467 self._read_test([' , , '],
468 [['', '', '']],
469 skipinitialspace=True)
470 self._read_test([' , , '],
471 [[None, None, None]],
472 skipinitialspace=True, quoting=csv.QUOTE_NOTNULL)
473 self._read_test([' , , '],
474 [[None, None, None]],
475 skipinitialspace=True, quoting=csv.QUOTE_STRINGS)
476
477 def test_read_space_delimiter(self):
478 self._read_test(['a b', ' a ', ' ', ''],

Callers

nothing calls this directly

Calls 1

_read_testMethod · 0.95

Tested by

no test coverage detected