Skip to content

Commit 429d829

Browse files
committed
Added a unit test that fails in master and passes in this branch.
1 parent 6984821 commit 429d829

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

pandas/io/tests/test_cparser.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -359,6 +359,11 @@ def test_empty_field_eof(self):
359359
names=list('abcd'), engine='c')
360360
assert_frame_equal(df, c)
361361

362+
def test_chunk_begins_with_newline_whitespace(self):
363+
data = '\n hello\nworld\n'
364+
result = TextReader(StringIO(data), header=None).read()
365+
self.assertEqual(len(result[0]), 2)
366+
362367
def assert_array_dicts_equal(left, right):
363368
for k, v in compat.iteritems(left):
364369
assert(np.array_equal(v, right[k]))

0 commit comments

Comments
 (0)