-
Notifications
You must be signed in to change notification settings - Fork 4
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
UserWarning
s thrown in in test suite
#399
Comments
This issue is about warnings in our code, so we should adjust the tests accordingly (after ensuring that the implementation is indeed correct). |
UserWarning
s not catched in test suiteUserWarning
s thrown in in test suite
Changed the description accordingly. |
One of the warnings is the I think the warning generally makes sense (although this case is somewhat pathologcal), so I would decide for just silencing it in the specific test that raised it. The fact that the warning talks about "numerical" data (when in reality it's just |
Closes #399. ### Summary of Changes * Ignore the `UserWarning` about data being already numerical thrown by `OneHotEncoder` in `nan` testcase. * Ignore `UserWarning`s about multiple most common values existing thrown by `Imputer` in testcases that are not meant to test for warnings. --------- Co-authored-by: megalinter-bot <[email protected]> Co-authored-by: Alexander <[email protected]>
🎉 This issue has been resolved in version 0.15.0 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
Is your feature request related to a problem?
3
UserWarning
s fromtests/safeds/data/tabular/transformation/test_imputer.py
and.../_table_transformer.py
and.../test_one_hot_encoder.py
are currently reported as not being catched by our test suite.(Tested on 54a6040.)
Desired solution
Find the cause of the warnings and handle them accordingly.
If they're meant to be thrown, catch them in the tests.
Ideally, the linter should also be updated not not even allow the tests to pass with these uncatched warnings thrown (see #357).
The text was updated successfully, but these errors were encountered: