8000 GH-94438: Fix `RuntimeWarning` for jump tests in `test_sys_settrace` by gaogaotiantian · Pull Request #111341 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

GH-94438: Fix RuntimeWarning for jump tests in test_sys_settrace #111341

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

Merged
merged 4 commits into from
Oct 26, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Use simplefilter
  • Loading branch information
gaogaotiantian committed Oct 26, 2023
commit 8c4c2d1c9cf9f719d4a240747541dba5ee794a1c
2 changes: 1 addition & 1 deletion Lib/test/test_sys_settrace.py
< 5D57 td class="blob-num blob-num-expandable" colspan="2"> Expand Up
Original file line number Diff line number Diff line change
@@ -2004,7 +2004,7 @@ def run_test(self, func, jumpFrom, jumpTo, expected, error=None,
stack.enter_context(self.assertWarnsRegex(*warning))
else:
stack.enter_context(warnings.catch_warnings())
warnings.filterwarnings('error')
warnings.simplefilter('error')
func(output)

sys.settrace(None)
Expand Down
0