-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Integrate warnings filtering directly into Config #7700
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
Integrate warnings filtering directly into Config #7700
Conversation
Warnings are a central part of Python, so much that Python itself has command-line and environtment variables to handle warnings. By moving the concept of warning handling into Config, it becomes natural to filter warnings issued as early as possible, even before the "_pytest.warnings" plugin is given a chance to spring into action. This also avoids the weird coupling between config and the warnings plugin that was required before. Fix pytest-dev#6681 Fix pytest-dev#2891 Fix pytest-dev#7620 Fix pytest-dev#7626 Close pytest-dev#7649
854867a
to
340cea2
Compare
This probably breaks |
Possibly, depending on the reasons |
Hmmm actually this does not really change things: the We can however improve this even further by not doing anything in |
Done! This is now even safer than before, because even config time warnings are not issued anymore with Thanks @The-Compiler. 👍 |
Done! This is now even safer than before, because config time warnings are also blocked by Thanks @The-Compiler! |
2618a56
to
01ffea7
Compare
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.
One less cyclic dependency, nice!
Co-authored-by: Ran Benita <[email protected]>
👏 Thank you! Which release should I expect this patch to be in? I'll be on the look out. 😄 |
6.1, which should be out soon (#7703). 👍 |
Regression introduced in pytest-dev#7700
Fix will start workign with pytest 6.1 see pytest-dev/pytest#7700
* Simple test * More functions supported * Fixes, Example * Add code quality tool Reformat code Add type hintings Fix code errors * Add .mypy_cache to .gitignore * Make line length 120 chars * Initial playback support * Seek support * Add tests * Format tests too * Remove commented code * Smaller asset. Refactor tests. Patch module for tests. * Fix build * Remove debug * Validate if open() method called twice * Remove unused file placeholder * Better typing * Merge develop Refactor tests * CI changes * CI changes * CI changes * CI changes * CI changes * CI changes * Some changes in tests definitions * Fix Maklefile Remove unused total_capsules * Fix * Update playback_seek_timestamp function description * Typofix * Update readme with small details. * rename _thread_safe to thread_safe * reformat line for readability * force ubuntu-18.04. Version supported by SDK * WIP * WIP * Fix build * Rebase mkv-support-3 * Refactor tests Add unit tests * WIP: color controls * More color-module tests CI * Refactor device_get_color_control_capabilities() * WIP: IMU support * CI fix * start/stop cameras support * device_get_capture support * Remove debug lines * support of get_capture, get_imu_sample * WIP: Calibration * WIP: Capture * Support device_get_raw_calibration * Support creating calibration from json file * convert_3d_to_3d support * calibration_2d_to_3d support * WIP: Transformations support * Transformation functions * Refactor transformation * Refactor examples * Add benchmark example * Fix tests * Better playback example get_previouse_capture support * Fix playback example * Rollback some text changes * rename capsule_xxxx_name to CAPSULE_XXXX_NAME * Text fix * Typo fix * Refactor examples * CR changes * CR changes * CR changes * CR changes * CR changes * add py.typed to distribution * remove not required _start_imu() call * fix PytestAssertRewriteWarning Fix will start workign with pytest 6.1 see pytest-dev/pytest#7700 Co-authored-by: Louis-Philippe Asselin <[email protected]> Co-authored-by: Louis-Philippe Asselin <[email protected]>
Warnings are a central part of Python, so much that Python itself has
command-line and environtment variables to handle warnings.
By moving the concept of warning handling into Config, it becomes natural to
filter warnings issued as early as possible, even before the "_pytest.warnings"
plugin is given a chance to spring into action. This also avoids the weird
coupling between config and the warnings plugin that was required before.
Fix #6681
Fix #2891
Fix #7426
Fix #7626
Close #7649