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

Method test_read_linenum

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

Source from the content-addressed store, hash-verified

518 csv.field_size_limit(limit)
519
520 def test_read_linenum(self):
521 r = csv.reader(['line,1', 'line,2', 'line,3'])
522 self.assertEqual(r.line_num, 0)
523 next(r)
524 self.assertEqual(r.line_num, 1)
525 next(r)
526 self.assertEqual(r.line_num, 2)
527 next(r)
528 self.assertEqual(r.line_num, 3)
529 self.assertRaises(StopIteration, next, r)
530 self.assertEqual(r.line_num, 3)
531
532 @unittest.expectedFailure # TODO: RUSTPYTHON
533 def test_roundtrip_quoteed_newlines(self):

Callers

nothing calls this directly

Calls 4

nextFunction · 0.85
readerMethod · 0.45
assertEqualMethod · 0.45
assertRaisesMethod · 0.45

Tested by

no test coverage detected