mirror of
https://github.com/python/cpython.git
synced 2025-09-27 10:50:04 +00:00
Since xmllib is deprecated now, suppress the DeprecationWarning its test
module necessarily raises.
This commit is contained in:
parent
b05cd496df
commit
a7c2b303d4
1 changed files with 5 additions and 1 deletions
|
@ -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):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue