Repository navigation
CIP-0010: stop re-silencing DeprecationWarning on import GPy - #1298
Merged
Merged
Conversation
Remove the process-wide filterwarnings ignore from GPy/__init__.py so importing GPy no longer undoes python -Wd / PYTHONWARNINGS=default for the whole process (CIP-0010 / REQ-0003).
lawrennd
added a commit
that referenced
this pull request
Nov 13, 2026
Record PR #1298 against the DeprecationWarning re-silence bug (CPython already ignores by default), and say main not devel for the paramz surface snapshot in CIP-000F.
Run the filter regression check in a subprocess so purging sys.modules mid-suite no longer dual-loads GPy classes and breaks serialization and isinstance checks.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1298 +/- ##
==========================================
- Coverage 61.92% 61.92% -0.01%
==========================================
Files 206 206
Lines 21843 21841 -2
Branches 2550 2550
==========================================
- Hits 13526 13524 -2
Misses 7688 7688
Partials 629 629
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
warnings.filterwarnings("ignore", category=DeprecationWarning)fromGPy/__init__.py(CIP-0010 / REQ-0003, Discussion CIP-0010: GPy2 readiness — what should be deprecated, and what should keep working? #1297).DeprecationWarningfor the whole process after users had enabled them (python -Wd,PYTHONWARNINGS=default).Test plan
pytest GPy/testing/test_deprecation_filters.py GPy/testing/test_stick_explorer_spike.pyPYTHONWARNINGS=default python -c "import GPy"still succeeds; with matplotlib, thevisualizedeprecation may appear once under-Wd/pytest (expected)