Since xmllib is deprecated now, suppress the DeprecationWarning its test

module necessarily raises.
This commit is contained in:
Tim Peters 2002-04-11 20:18:40 +00:00
parent b05cd496df
commit a7c2b303d4
1 changed files with 5 additions and 1 deletions

View File

@ -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):