Skip to content

Conversation

@google-labs-jules
Copy link
Contributor

Moved ignore::pandas.errors.SettingWithCopyWarning from pytest.ini to conftest.py with a check for its existence. This fixes AttributeError: module 'pandas.errors' has no attribute 'SettingWithCopyWarning' when running tests against pandas 3.0.


PR created automatically by Jules for task 1336882389279070030 started by @tswast

@google-labs-jules
Copy link
Contributor Author

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!


For security, I will only act on instructions from the user who triggered this task.

New to Jules? Learn more at jules.google/docs.

@product-auto-label product-auto-label bot added size: xs Pull request size is extra small. api: bigquery Issues related to the googleapis/python-bigquery-dataframes API. labels Dec 6, 2025
@tswast tswast changed the title Fix pytest crash on pandas 3.0 due to missing SettingWithCopyWarning chore: fix pytest crash on pandas 3.0 due to missing SettingWithCopyWarning Dec 6, 2025
@tswast tswast marked this pull request as ready for review December 6, 2025 14:55
@tswast tswast requested review from a team as code owners December 6, 2025 14:55
@tswast tswast requested a review from TrevorBergeron December 6, 2025 14:55
@tswast tswast added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Dec 6, 2025
tswast
tswast previously approved these changes Dec 6, 2025
@bigframes-bot bigframes-bot removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Dec 6, 2025
@product-auto-label product-auto-label bot added size: xl Pull request size is extra large. and removed size: xs Pull request size is extra small. labels Dec 6, 2025
@tswast tswast added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Dec 6, 2025
@bigframes-bot bigframes-bot removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Dec 6, 2025
…arning

The `SettingWithCopyWarning` has been removed in pandas 3.0. Having it in `pytest.ini`'s `filterwarnings` caused pytest to crash on startup when resolving the warning class. This change moves the suppression to `conftest.py` where it is applied conditionally only if the warning class exists.
@tswast tswast force-pushed the fix-pandas-3-warning-crash branch from dec7c58 to 36648d6 Compare December 6, 2025 15:06
@product-auto-label product-auto-label bot added size: xs Pull request size is extra small. and removed size: xl Pull request size is extra large. labels Dec 6, 2025
@tswast tswast added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Dec 6, 2025
@bigframes-bot bigframes-bot removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Dec 6, 2025
@tswast tswast merged commit d2e8cb4 into main Dec 8, 2025
24 of 26 checks passed
@tswast tswast deleted the fix-pandas-3-warning-crash branch December 8, 2025 22:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: bigquery Issues related to the googleapis/python-bigquery-dataframes API. size: xs Pull request size is extra small.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants