diff options
| author | Ezio Melotti <ezio.melotti@gmail.com> | 2010-08-03 05:47:14 (GMT) |
|---|---|---|
| committer | Ezio Melotti <ezio.melotti@gmail.com> | 2010-08-03 05:47:14 (GMT) |
| commit | 3ca2a654d2e9a3b61b4d8d8d24b11d454cfa147f (patch) | |
| tree | 41e7cde71e61ec57b9afb1aa16e36d5be0609d1d /Lib/test | |
| parent | c00b88cedb996008ae53ef9e6e36f7dac82eb693 (diff) | |
| download | cpython-3ca2a654d2e9a3b61b4d8d8d24b11d454cfa147f.zip cpython-3ca2a654d2e9a3b61b4d8d8d24b11d454cfa147f.tar.gz cpython-3ca2a654d2e9a3b61b4d8d8d24b11d454cfa147f.tar.bz2 | |
Fix deprecation warning in test_MimeWriter.
Diffstat (limited to 'Lib/test')
| -rw-r--r-- | Lib/test/test_MimeWriter.py | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/Lib/test/test_MimeWriter.py b/Lib/test/test_MimeWriter.py index 6a32cb6..2f6636d 100644 --- a/Lib/test/test_MimeWriter.py +++ b/Lib/test/test_MimeWriter.py @@ -8,12 +8,9 @@ This should generate Barry's example, modulo some quotes and newlines. """ import unittest, StringIO -from test.test_support import run_unittest - -import warnings -warnings.filterwarnings("ignore", "the MimeWriter module is deprecated.*", - DeprecationWarning) +from test.test_support import run_unittest, import_module +import_module("MimeWriter", deprecated=True) from MimeWriter import MimeWriter SELLER = '''\ |
