From 3ca2a654d2e9a3b61b4d8d8d24b11d454cfa147f Mon Sep 17 00:00:00 2001 From: Ezio Melotti Date: Tue, 3 Aug 2010 05:47:14 +0000 Subject: [PATCH] Fix deprecation warning in test_MimeWriter. --- Lib/test/test_MimeWriter.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/Lib/test/test_MimeWriter.py b/Lib/test/test_MimeWriter.py index 6a32cb6b625..2f6636dfdf1 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 = '''\