Skip to content
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
Update Doc/library/test.rst
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
  • Loading branch information
CharlieZhao95 and CAM-Gerlach authored Mar 30, 2023
commit 69cf474b763394e4b87fad1f7da18563863f5e2b
2 changes: 1 addition & 1 deletion Doc/library/test.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1696,7 +1696,7 @@ The :mod:`test.support.warnings_helper` module provides support for warnings tes
A decorator to suppress warnings. *category* is a subclass of :exc:`Warning`
class. It is approximately equivalent to calling :func:`warnings.catch_warnings()`
with :meth:`warnings.simplefilter` set to ``ignore``. If you want to suppress some
known warnings in test case, using code like the following::
specific known warnings in a test case, use code like the following::

@warning_helper.ignore_warnings(category=DeprecationWarning)
def test_suppress_warning():
Expand Down