mirror of
https://github.com/python/cpython.git
synced 2025-11-01 10:45:30 +00:00
Various tests cleanup: check_warnings/check_py3k_warnings, unittest.assert* and setUp/tearDown.
This commit is contained in:
parent
4854c969fb
commit
bc27c6a5aa
10 changed files with 89 additions and 91 deletions
|
|
@ -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 = '''\
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue