Skip to content

Commit 703654f

Browse files
committed
fixed unit test
1 parent 7b8e68b commit 703654f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pandas/tests/io/parser/test_unsupported.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,6 @@ def test_pyarrow_engine(self):
152152
read_csv(StringIO(data), engine="pyarrow", **kwargs)
153153

154154
def test_pyarrow_newlines_in_values(self):
155-
pytest.importorskip("pyarrow")
156155
msg = (
157156
"CSV parser got out of sync with chunker. "
158157
"This can mean the data file contains cell values spanning multiple "
@@ -161,7 +160,7 @@ def test_pyarrow_newlines_in_values(self):
161160
rows = [{"text": "ab\ncd", "idx": idx} for idx in range(1_000_000)]
162161
df = DataFrame(rows)
163162
df.to_csv("test.csv", index=False)
164-
with pytest.raises(ValueError, match=msg):
163+
with pytest.raises(ParserError, match=msg):
165164
read_csv("test.csv", engine="pyarrow")
166165
os.unlink("test.csv")
167166

0 commit comments

Comments
 (0)