Integrate warnings filtering directly into Config#7700
Integrate warnings filtering directly into Config#7700nicoddemus merged 6 commits intopytest-dev:masterfrom
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
bluetech
left a comment
There was a problem hiding this comment.
One less cyclic dependency, nice!
Co-authored-by: Ran Benita <ran@unusedvar.com>
|
👏 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 <louisphilippeasselin@gmail.com> Co-authored-by: Louis-Philippe Asselin <lpasselin@users.noreply.github.com>
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