Commits

Ezio Melotti committed ef119db

Fix deprecation warning in test_MimeWriter.

Comments (0)

Files changed (1)

Lib/test/test_MimeWriter.py

 """
 
 import unittest, StringIO
-from test.test_support import run_unittest
+from test.test_support import run_unittest, import_module
 
-import warnings
-warnings.filterwarnings("ignore", "the MimeWriter module is deprecated.*",
-                        DeprecationWarning)
-
+import_module("MimeWriter", deprecated=True)
 from MimeWriter import MimeWriter
 
 SELLER = '''\