Reranko05 commented on code in PR #50945:
URL: https://github.com/apache/arrow/pull/50945#discussion_r3907464867
##########
python/pyarrow/tests/test_json.py:
##########
@@ -529,9 +528,13 @@ def test_non_linewise_chunker_bad_middle_block(self):
'n': [1]
}
- with pytest.raises(pa.ArrowInvalid,
- match="JSON parse error *"):
+ try:
reader.read_next_batch()
+ except pa.ArrowInvalid:
+ pass
+ else:
+ with pytest.raises(pa.ArrowInvalid):
+ reader.read_next_batch()
Review Comment:
Updated for readahead, since the error may be surfaced by either the chunker
or parser.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]