8000 CLN/CI: Catch that stderr-warning! by h-vetinari · Pull Request #23706 · pandas-dev/pandas · GitHub
[go: up one dir, main page]

Skip to content

CLN/CI: Catch that stderr-warning! #23706

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Nov 15, 2018
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Catch that stderr-warning!
  • Loading branch information
h-vetinari committed Nov 14, 2018
commit f5a4bf77dff9e5437fcc0d7bafe5a1cd1bb730c1
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