From 20428527a7c188d988d20b267cfef58da10b0fc9 Mon Sep 17 00:00:00 2001 From: Mario Corchero Date: Thu, 6 Dec 2018 17:05:46 +0000 Subject: [PATCH] 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. --- Lib/unittest/test/testmock/support.py | 7 ------- 1 file changed, 7 deletions(-) diff --git a/Lib/unittest/test/testmock/support.py b/Lib/unittest/test/testmock/support.py index 205431adca..c7ad20b806 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 -- 2.49.0