summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_strop.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2001-05-15 02:14:44 (GMT)
committerGuido van Rossum <guido@python.org>2001-05-15 02:14:44 (GMT)
commit2e0a654f6edeb58bef3cccffa42c2a236117a88c (patch)
treee70191f495b8aae610804a78f8cf678fb9cf019c /Lib/test/test_strop.py
parent9cba64318e81e6b1ae6fd9e9b9b134fbb9658d61 (diff)
downloadcpython-2e0a654f6edeb58bef3cccffa42c2a236117a88c.zip
cpython-2e0a654f6edeb58bef3cccffa42c2a236117a88c.tar.gz
cpython-2e0a654f6edeb58bef3cccffa42c2a236117a88c.tar.bz2
Add warnings to the strop module, for to those functions that really
*are* obsolete; three variables and the maketrans() function are not (yet) obsolete. Add a compensating warnings.filterwarnings() call to test_strop.py. Add this to the NEWS.
Diffstat (limited to 'Lib/test/test_strop.py')
-rw-r--r--Lib/test/test_strop.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/test_strop.py b/Lib/test/test_strop.py
index 9130088..74a2bb6 100644
--- a/Lib/test/test_strop.py
+++ b/Lib/test/test_strop.py
@@ -1,4 +1,6 @@
from test_support import verbose
+import warnings
+warnings.filterwarnings("ignore", "", DeprecationWarning, __name__)
import strop, sys
def test(name, input, output, *args):