mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
bpo-40275: Use new test.support helper submodules in tests (GH-21772)
This commit is contained in:
parent
e27a51c11e
commit
fcce8c649a
8 changed files with 27 additions and 18 deletions
|
@ -111,7 +111,7 @@ EXTERNAL_ENTITY_XML = """\
|
|||
def checkwarnings(*filters, quiet=False):
|
||||
def decorator(test):
|
||||
def newtest(*args, **kwargs):
|
||||
with support.check_warnings(*filters, quiet=quiet):
|
||||
with warnings_helper.check_warnings(*filters, quiet=quiet):
|
||||
test(*args, **kwargs)
|
||||
functools.update_wrapper(newtest, test)
|
||||
return newtest
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue