Skip to content

Commit a065d02

Browse files
committed
test case for raising warning
1 parent d4b0f7d commit a065d02

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

pandas/tests/io/parser/common.py

+6
Original file line numberDiff line numberDiff line change
@@ -1604,3 +1604,9 @@ def test_buffer_rd_bytes_bad_unicode(self):
16041604
t = TextIOWrapper(t, encoding='ascii', errors='surrogateescape')
16051605
with pytest.raises(UnicodeError):
16061606
pd.read_csv(t, encoding='UTF-8')
1607+
1608+
def test_read_csv_depr_delimiter(self):
1609+
# GH 21996
1610+
with tm.assert_produces_warning(FutureWarning,
1611+
check_stacklevel=False):
1612+
self.read_csv(self.csv2, delimiter=',')

0 commit comments

Comments
 (0)