Commit a7c2b303 authored by Tim Peters's avatar Tim Peters

Since xmllib is deprecated now, suppress the DeprecationWarning its test

module necessarily raises.
parent b05cd496
...@@ -13,11 +13,15 @@ testdoc = """\ ...@@ -13,11 +13,15 @@ testdoc = """\
<greeting>Hello, world!</greeting> <greeting>Hello, world!</greeting>
""" """
import warnings
warnings.filterwarnings("ignore", ".* xmllib .* obsolete.*",
DeprecationWarning)
del warnings
import test_support import test_support
import unittest import unittest
import xmllib import xmllib
class XMLParserTestCase(unittest.TestCase): class XMLParserTestCase(unittest.TestCase):
def test_simple(self): def test_simple(self):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment