Skip to content

Avoid deprecation warnings for special attribute access in CCProxy after Hypothesis 6.131.1 update #2187

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 1 commit into from
Apr 21, 2025

Conversation

kounelisagis
Copy link
Member

This PR prevents CCProxy.__getattr__ from emitting deprecation warnings when accessing special attributes, such as __file__.

Hypothesis 6.131.1 introduced logic that inspects local modules by accessing constant values, including attributes like __file__. This triggered warnings during test runs due to our proxy class warning.

Closes #2183, closes TileDB-Inc/centralized-tiledb-nightlies#47

cc. @jdblischak

@kounelisagis kounelisagis requested a review from ihnorton April 21, 2025 15:03
@jdblischak
Copy link
Contributor

Thanks @kounelisagis! I manually triggered a nightly build to use the PR branch agis/fix-cc-issues

Copy link
Contributor

@jdblischak jdblischak left a comment

Choose a reason for hiding this comment

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

Nightly TileDB-Py tests passed with this PR

@ihnorton ihnorton merged commit d7ba1c2 into main Apr 21, 2025
43 checks passed
@ihnorton ihnorton deleted the agis/fix-cc-issues branch April 21, 2025 18:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants