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
|
@ -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…
Reference in New Issue