r47345 - Merge getDeprecationSuppression-removal-6266: Remove t.p.test.test_util._getDeprecationSuppression.
adiroiban-TA+aISz0psMTMxyoc4vAAJOcrHinNvQL0E9HWUfgJXw@public.gmane.org Thu, 5 May 2016 09:22:32 -0600 (MDT)
| Newsgroups | gmane.comp.python.twisted.commits |
|---|---|
| Message-ID | <[email protected]> |
Author: adiroiban
Date: Thu May 5 09:22:24 2016
New Revision: 47345
Added:
trunk/twisted/topfiles/6266.misc
Modified:
trunk/twisted/python/test/test_util.py
Log:
Merge getDeprecationSuppression-removal-6266: Remove t.p.test.test_util._getDeprecationSuppression.
Author: adiroiban
Reviewer: glyph
Fixes: #6266
Modified: trunk/twisted/python/test/test_util.py
==============================================================================
--- trunk/twisted/python/test/test_util.py (original)
+++ trunk/twisted/python/test/test_util.py Thu May 5 09:22:24 2016
@@ -23,7 +23,6 @@
from twisted.trial.util import suppress as SUPPRESS
from twisted.python import util
-from twisted.python.reflect import fullyQualifiedName
from twisted.python.filepath import FilePath
from twisted.internet import reactor
from twisted.internet.interfaces import IReactorProcess
@@ -844,22 +843,6 @@
-def _getDeprecationSuppression(f):
- """
- Returns a tuple of arguments needed to suppress deprecation warnings from
- a specified function.
-
- @param f: function to suppress dperecation warnings for
- @type f: L{callable}
-
- @return: tuple to add to C{suppress} attribute
- """
- return SUPPRESS(
- category=DeprecationWarning,
- message='%s was deprecated' % (fullyQualifiedName(f),))
-
-
-
class InitGroupsTests(unittest.TestCase):
"""
Tests for L{util.initgroups}.