-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Fix failing VI test due to pytest change #7144
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #7144 +/- ##
===========================================
+ Coverage 58.65% 92.25% +33.59%
===========================================
Files 101 101
Lines 16961 16961
===========================================
+ Hits 9949 15647 +5698
+ Misses 7012 1314 -5698 |
Many thanks investigating that! |
tests/variational/test_inference.py
Outdated
pytest.skip(str(e)) | ||
|
||
if expected_warning: | ||
assert len(record) > 1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is it bigger than 1 and not just bigger than zero?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ups, just my stupid mistake
Thanks a ton @aerubanov! |
Description
In pytest 7 missing warning were ignored if some exception was raised, but pytest 8 checking them and thats why
test_fit_start[SVGD-mini]
fails. I replacedpytest.warn()
by manual check for warning raised.Related Issue
Type of change
📚 Documentation preview 📚: https://pymc--7144.org.readthedocs.build/en/7144/