summaryrefslogtreecommitdiffstats
path: root/Lib/unittest
diff options
context:
space:
mode:
authorMario Corchero <mariocj89@gmail.com>2018-12-06 17:05:46 (GMT)
committerPablo Galindo <Pablogsal@gmail.com>2018-12-06 17:05:46 (GMT)
commit20428527a7c188d988d20b267cfef58da10b0fc9 (patch)
treeeb5f932efce9439fe64a95ed990dfeb84ab37d56 /Lib/unittest
parent0644b33821b70efbf0ac1ec1fb8729b05796564a (diff)
downloadcpython-20428527a7c188d988d20b267cfef58da10b0fc9.zip
cpython-20428527a7c188d988d20b267cfef58da10b0fc9.tar.gz
cpython-20428527a7c188d988d20b267cfef58da10b0fc9.tar.bz2
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.
Diffstat (limited to 'Lib/unittest')
-rw-r--r--Lib/unittest/test/testmock/support.py7
1 files changed, 0 insertions, 7 deletions
diff --git a/Lib/unittest/test/testmock/support.py b/Lib/unittest/test/testmock/support.py
index 205431a..c7ad20b 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