File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 13
13
14
14
import pytest
15
15
16
+ from pandas .compat .pyarrow import pa_version_under18p0
16
17
from pandas .errors import ParserError
17
18
18
19
import pandas ._testing as tm
@@ -151,6 +152,7 @@ def test_pyarrow_engine(self):
151
152
with pytest .raises (ValueError , match = msg ):
152
153
read_csv (StringIO (data ), engine = "pyarrow" , ** kwargs )
153
154
155
+ @pytest .mark .skipif (not pa_version_under18p0 , reason = "No ParserError raised" )
154
156
def test_pyarrow_newlines_in_values (self ):
155
157
pytest .importorskip ("pyarrow" )
156
158
msg = (
@@ -161,9 +163,6 @@ def test_pyarrow_newlines_in_values(self):
161
163
rows = [{"text" : "ab\n cd" , "idx" : idx } for idx in range (1_000_000 )]
162
164
df = DataFrame (rows )
163
165
df .to_csv ("test.csv" , index = False )
164
- # print(f"11={pa_version_under11p0}, 13={pa_version_under13p0}")
165
- # print(f"14={pa_version_under14p0}, 15={pa_version_under15p0}")
166
- # print(f"17={pa_version_under17p0}, 18={pa_version_under18p0}")
167
166
168
167
with pytest .raises (ParserError , match = msg ):
169
168
read_csv ("test.csv" , engine = "pyarrow" )
You can’t perform that action at this time.
0 commit comments