mirror of
https://github.com/python/cpython.git
synced 2025-12-10 11:00:14 +00:00
Fix deprecation warning in test_MimeWriter.
This commit is contained in:
parent
c00b88cedb
commit
3ca2a654d2
1 changed files with 2 additions and 5 deletions
|
|
@ -8,12 +8,9 @@ This should generate Barry's example, modulo some quotes and newlines.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import unittest, StringIO
|
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
|
from MimeWriter import MimeWriter
|
||||||
|
|
||||||
SELLER = '''\
|
SELLER = '''\
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue