[Python-checkins] Remove unused function in `testmock/support.py` (GH-10975)

Pablo Galindo webhook-mailer at python.org
Thu Dec 6 12:06:00 EST 2018


https://github.com/python/cpython/commit/20428527a7c188d988d20b267cfef58da10b0fc9
commit: 20428527a7c188d988d20b267cfef58da10b0fc9
branch: master
author: Mario Corchero <mariocj89 at gmail.com>
committer: Pablo Galindo <Pablogsal at gmail.com>
date: 2018年12月06日T17:05:46Z
summary:
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.
files:
M Lib/unittest/test/testmock/support.py
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 @@ def wibble(self):
 
 class X(object):
 pass
-
-
-def examine_warnings(func):
- def wrapper():
- with catch_warnings(record=True) as ws:
- func(ws)
- return wrapper


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /