]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Since xmllib is deprecated now, suppress the DeprecationWarning its test
authorTim Peters <tim.peters@gmail.com>
Thu, 11 Apr 2002 20:18:40 +0000 (20:18 +0000)
committerTim Peters <tim.peters@gmail.com>
Thu, 11 Apr 2002 20:18:40 +0000 (20:18 +0000)
module necessarily raises.

Lib/test/test_xmllib.py

index 9ea50420948320026f951839c11709df904e4bc9..97ae14110172e7fb0381ff41f6bb56754142a108 100644 (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):