summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2008-06-12 14:23:49 (GMT)
committerBenjamin Peterson <benjamin@python.org>2008-06-12 14:23:49 (GMT)
commita03722f2784f65d499b94bea348f884999922e38 (patch)
treec199c0f1e97c604b751a20b82db5c6456044b641 /Lib/test
parentffae306784a067c9a604856e0886fa9d5e716337 (diff)
downloadcpython-a03722f2784f65d499b94bea348f884999922e38.zip
cpython-a03722f2784f65d499b94bea348f884999922e38.tar.gz
cpython-a03722f2784f65d499b94bea348f884999922e38.tar.bz2
deprecated mimetools
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/test_mimetools.py5
-rw-r--r--Lib/test/test_py3kwarn.py2
2 files changed, 5 insertions, 2 deletions
diff --git a/Lib/test/test_mimetools.py b/Lib/test/test_mimetools.py
index b0b5b01..ed01ede 100644
--- a/Lib/test/test_mimetools.py
+++ b/Lib/test/test_mimetools.py
@@ -1,7 +1,10 @@
import unittest
from test import test_support
-import string, StringIO, mimetools
+import string
+import StringIO
+
+mimetools = test_support.import_module("mimetools", deprecated=True)
msgtext1 = mimetools.Message(StringIO.StringIO(
"""Content-Type: text/plain; charset=iso-8859-1; format=flowed
diff --git a/Lib/test/test_py3kwarn.py b/Lib/test/test_py3kwarn.py
index 768be28..b2dc8cd 100644
--- a/Lib/test/test_py3kwarn.py
+++ b/Lib/test/test_py3kwarn.py
@@ -197,7 +197,7 @@ class TestStdlibRemovals(unittest.TestCase):
# test.testall not tested as it executes all unit tests as an
# import side-effect.
all_platforms = ('audiodev', 'imputil', 'mutex', 'user', 'new', 'rexec',
- 'Bastion', 'compiler', 'dircache', 'fpformat',
+ 'Bastion', 'compiler', 'dircache', 'mimetools', 'fpformat',
'ihooks', 'mhlib', 'statvfs', 'htmllib', 'sgmllib')
inclusive_platforms = {'irix' : ('pure', 'AL', 'al', 'CD', 'cd', 'cddb',
'cdplayer', 'CL', 'cl', 'DEVICE', 'GL',