From: Tim Peters Date: Thu, 11 Apr 2002 20:18:40 +0000 (+0000) Subject: Since xmllib is deprecated now, suppress the DeprecationWarning its test X-Git-Tag: v2.3c1~6047 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a7c2b303d43fcc0414fed6dca84d9e8dcf1fceab;p=thirdparty%2FPython%2Fcpython.git Since xmllib is deprecated now, suppress the DeprecationWarning its test module necessarily raises. --- diff --git a/Lib/test/test_xmllib.py b/Lib/test/test_xmllib.py index 9ea504209483..97ae14110172 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):