mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +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>
|
||||
"""
|
||||
|
||||
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…
Add table
Add a link
Reference in a new issue