diff options
author | Brett Cannon <bcannon@gmail.com> | 2007-05-30 20:46:26 (GMT) |
---|---|---|
committer | Brett Cannon <bcannon@gmail.com> | 2007-05-30 20:46:26 (GMT) |
commit | 90134c9a05146f3cc53fcb8a5de8fdfc2fe8dc93 (patch) | |
tree | 5db4301e47fae7b88d59f4068af7be6aabadd004 /Lib/test/test_MimeWriter.py | |
parent | b4eec28e3386c52a43cc02737517759deb3a3df5 (diff) | |
download | cpython-90134c9a05146f3cc53fcb8a5de8fdfc2fe8dc93.zip cpython-90134c9a05146f3cc53fcb8a5de8fdfc2fe8dc93.tar.gz cpython-90134c9a05146f3cc53fcb8a5de8fdfc2fe8dc93.tar.bz2 |
Have MimeWriter raise a DeprecationWarning as per PEP 4 and its documentation.
Diffstat (limited to 'Lib/test/test_MimeWriter.py')
-rw-r--r-- | Lib/test/test_MimeWriter.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/test/test_MimeWriter.py b/Lib/test/test_MimeWriter.py index feca163..5a20bf2 100644 --- a/Lib/test/test_MimeWriter.py +++ b/Lib/test/test_MimeWriter.py @@ -10,6 +10,10 @@ This should generate Barry's example, modulo some quotes and newlines. import unittest, sys, StringIO from test.test_support import run_unittest +import warnings +warnings.filterwarnings("ignore", "the MimeWriter module is deprecated.*", + DeprecationWarning) + from MimeWriter import MimeWriter SELLER = '''\ |