From: Mario Corchero Date: Thu, 6 Dec 2018 17:05:46 +0000 (+0000) Subject: Remove unused function in `testmock/support.py` (GH-10975) X-Git-Tag: v3.8.0a1~331 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=20428527a7c188d988d20b267cfef58da10b0fc9;p=thirdparty%2FPython%2Fcpython.git 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. --- diff --git a/Lib/unittest/test/testmock/support.py b/Lib/unittest/test/testmock/support.py index 205431adcacc..c7ad20b80665 100644 --- a/Lib/unittest/test/testmock/support.py +++ b/Lib/unittest/test/testmock/support.py @@ -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