Skip to content

Conversation

jbrockmendel
Copy link
Member

Test that we are giving useful exception messages, also these execute more quickly than xfails.

def test_dtype_with_converters(all_parsers):
parser = all_parsers
data = """a,b
1.1,2.2
1.2,2.3"""

if parser.engine == "pyarrow":
msg = "The 'converters' option is not supported with the 'pyarrow' engine"
with pytest.raises(ValueError, match=msg):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A NotImplementedError would have been more ideal, but I guess NBD.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i guess i think of NotImplementedError as suggesting it is something we can do something about as opposed to something that isnt implemented upstream

@mroeschke mroeschke added Testing pandas testing functions or related to the test suite IO CSV read_csv, to_csv Arrow pyarrow functionality labels Nov 10, 2023
@mroeschke mroeschke added this to the 2.2 milestone Nov 11, 2023
@mroeschke mroeschke merged commit 6296e03 into pandas-dev:main Nov 11, 2023
@mroeschke
Copy link
Member

Thanks @jbrockmendel

@jbrockmendel jbrockmendel deleted the tst-pyarrow-xfails branch November 17, 2023 22:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Arrow pyarrow functionality IO CSV read_csv, to_csv Testing pandas testing functions or related to the test suite
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants