Commits

Ezio Melotti committed ef119db

Fix deprecation warning in test_MimeWriter.

  • Participants
  • Parent commits 4df72fe
  • Branches 2.6

Comments (0)

Files changed (1)

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