Fix deprecation warning in test_MimeWriter.

This commit is contained in:
Ezio Melotti 2010-08-03 05:47:14 +00:00
parent c00b88cedb
commit 3ca2a654d2
1 changed files with 2 additions and 5 deletions

View File

@ -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 = '''\