Skip to content

Commit 75dbf41

Browse files
h-vetinariPingviinituutti
authored andcommitted
CLN/CI: Catch that stderr-warning! (pandas-dev#23706)
1 parent 79a9322 commit 75dbf41

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

pandas/tests/io/parser/python_parser_only.py

+5
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"""
99

1010
import csv
11+
import sys
1112

1213
import pytest
1314

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

234+
@tm.capture_stderr
233235
def test_none_delimiter(self):
234236
# see gh-13374 and gh-17465
235237

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

252+
warning = sys.stderr.getvalue()
253+
assert 'Skipping line 3' in warning
254+
250255
def test_skipfooter_bad_row(self):
251256
# see gh-13879
252257
# see gh-15910

0 commit comments

Comments
 (0)