Skip to content

Commit

Permalink
CLN/CI: Catch that stderr-warning! (pandas-dev#23706)
Browse files Browse the repository at this point in the history
  • Loading branch information
h-vetinari authored and Pingviinituutti committed Feb 28, 2019
1 parent 79a9322 commit 75dbf41
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pandas/tests/io/parser/python_parser_only.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"""

import csv
import sys

import pytest

Expand Down Expand Up @@ -230,6 +231,7 @@ def test_multi_char_sep_quotes(self):
self.read_csv(StringIO(data), sep=',,',
quoting=csv.QUOTE_NONE)

@tm.capture_stderr
def test_none_delimiter(self):
# see gh-13374 and gh-17465

Expand All @@ -247,6 +249,9 @@ def test_none_delimiter(self):
warn_bad_lines=True)
tm.assert_frame_equal(result, expected)

warning = sys.stderr.getvalue()
assert 'Skipping line 3' in warning

def test_skipfooter_bad_row(self):
# see gh-13879
# see gh-15910
Expand Down

0 comments on commit 75dbf41

Please sign in to comment.