From a7c2b303d43fcc0414fed6dca84d9e8dcf1fceab Mon Sep 17 00:00:00 2001 From: Tim Peters Date: Thu, 11 Apr 2002 20:18:40 +0000 Subject: [PATCH] Since xmllib is deprecated now, suppress the DeprecationWarning its test module necessarily raises. --- Lib/test/test_xmllib.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Lib/test/test_xmllib.py b/Lib/test/test_xmllib.py index 9ea50420948..97ae1411017 100644 --- a/Lib/test/test_xmllib.py +++ b/Lib/test/test_xmllib.py @@ -13,11 +13,15 @@ testdoc = """\ Hello, world! """ +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):