Skip to content

Adjust tests in extension folder for new string option #56191

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Dec 8, 2023

Conversation

phofl
Copy link
Member

@phofl phofl commented Nov 26, 2023

  • closes #xxxx (Replace xxxx with the GitHub issue number)
  • Tests added and passed if fixing a bug or adding a new feature
  • All code checks passed.
  • Added type annotations to new arguments/methods/functions.
  • Added an entry in the latest doc/source/whatsnew/vX.X.X.rst file if fixing a bug or adding a new feature.

return self.frame_scalar_exc
result = self.frame_scalar_exc

if using_pyarrow_string_dtype() and result is not None:
Copy link
Member

Choose a reason for hiding this comment

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

cc @jbrockmendel if this follows how you imagined _get_expected_exception to function

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 am open to other suggestions if we keep in mind that this is a temporary solution until we enable the option by default which will make testing this a lot easier

Copy link
Member

Choose a reason for hiding this comment

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

this is pretty ugly but since its temporary (and im way late in reviewing) im not inclined to worry about it. There are a bunch of similar things that i think could be improved by catching pa.lib.ArrowNotImplementedError and re-raising as TypeError for cases that are not supposed to work

@mroeschke mroeschke added Testing pandas testing functions or related to the test suite Strings String extension data type and string data Arrow pyarrow functionality labels Nov 27, 2023
@phofl
Copy link
Member Author

phofl commented Dec 8, 2023

cc @mroeschke gentle ping

@mroeschke mroeschke added this to the 2.2 milestone Dec 8, 2023
@mroeschke mroeschke merged commit e3073b5 into pandas-dev:main Dec 8, 2023
@mroeschke
Copy link
Member

Thanks @phofl

@phofl phofl deleted the extension_tests branch December 8, 2023 23:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Arrow pyarrow functionality Strings String extension data type and string data Testing pandas testing functions or related to the test suite
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants