mirror of
https://github.com/python/cpython.git
synced 2025-11-01 18:51:43 +00:00
Remove unused function in testmock/support.py (GH-10975)
The function is never imported and the implementation is actually buggy. As `warnings.catch_warnings` is not imported here.
This commit is contained in:
parent
0644b33821
commit
20428527a7
1 changed files with 0 additions and 7 deletions
|
|
@ -12,10 +12,3 @@ class SomeClass(object):
|
|||
|
||||
class X(object):
|
||||
pass
|
||||
|
||||
|
||||
def examine_warnings(func):
|
||||
def wrapper():
|
||||
with catch_warnings(record=True) as ws:
|
||||
func(ws)
|
||||
return wrapper
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue