Skip to content

[Python] Fix test_parquet_file_too_small to catch only ArrowInvalid #48419

@HyukjinKwon

Description

@HyukjinKwon

Describe the enhancement requested

# TODO(dataset) with datasets API it raises OSError instead
with pytest.raises((pa.ArrowInvalid, OSError),
match='size is 0 bytes'):
with open(path, 'wb') as f:

Seems like it does not throw OSError anymore

Component(s)

Python

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions