[go: nahoru, domu]

Skip to content
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

gh-121163: Add support for all as an valid alias for always in warnings.simplefilter and warnings.filterswarnings #121164

Merged
merged 3 commits into from
Jun 30, 2024
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
Small fix in tests
  • Loading branch information
Eclips4 committed Jun 30, 2024
commit 39ae7711eb2d1263101cb365e594a02cbe5b80c7
4 changes: 2 additions & 2 deletions Lib/test/test_warnings/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ def test_always_and_all(self):
module=self.module) as w:
self.module.resetwarnings()
self.module.filterwarnings(mode, category=UserWarning)
message = "FilterTests.test_always"
message = "FilterTests.test_always_and_all"
def f():
self.module.warn(message, UserWarning)
f()
Expand All @@ -176,7 +176,7 @@ def test_always_and_all_after_default(self):
with original_warnings.catch_warnings(record=True,
module=self.module) as w:
self.module.resetwarnings()
message = "FilterTests.test_always_after_ignore"
message = "FilterTests.test_always_and_all_after_ignore"
def f():
self.module.warn(message, UserWarning)
f()
Expand Down
Loading