Skip to content

Commit

Permalink
TST: Verify fix for buffer overflow in read_csv with engine='c' (GH p…
Browse files Browse the repository at this point in the history
  • Loading branch information
Evan Wright committed Sep 17, 2015
1 parent d28fd70 commit 3ff37b7
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions pandas/io/tests/test_parsers.py
Original file line number Diff line number Diff line change
Expand Up @@ -2293,6 +2293,13 @@ def test_chunk_begins_with_newline_whitespace(self):
result = self.read_csv(StringIO(data), header=None)
self.assertEqual(len(result), 2)

# GH 9735
chunk1 = 'a' * (1024 * 256 - 2) + '\na'
chunk2 = '\n a'
result = pd.read_csv(StringIO(chunk1 + chunk2), header=None)
expected = pd.DataFrame(['a' * (1024 * 256 - 2), 'a', ' a'])
tm.assert_frame_equal(result, expected)

def test_empty_with_index(self):
# GH 10184
data = 'x,y'
Expand Down

0 comments on commit 3ff37b7

Please sign in to comment.