mirror of https://github.com/python/cpython
Since xmllib is deprecated now, suppress the DeprecationWarning its test
module necessarily raises.
This commit is contained in:
parent
b05cd496df
commit
a7c2b303d4
|
@ -13,11 +13,15 @@ testdoc = """\
|
|||
<greeting>Hello, world!</greeting>
|
||||
"""
|
||||
|
||||
import warnings
|
||||
warnings.filterwarnings("ignore", ".* xmllib .* obsolete.*",
|
||||
DeprecationWarning)
|
||||
del warnings
|
||||
|
||||
import test_support
|
||||
import unittest
|
||||
import xmllib
|
||||
|
||||
|
||||
class XMLParserTestCase(unittest.TestCase):
|
||||
|
||||
def test_simple(self):
|
||||
|
|
Loading…
Reference in New Issue