summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2002-04-11 20:18:40 (GMT)
committerTim Peters <tim.peters@gmail.com>2002-04-11 20:18:40 (GMT)
commita7c2b303d43fcc0414fed6dca84d9e8dcf1fceab (patch)
treeebc105c4597b34d28b77dae878a9f655c0e84906
parentb05cd496dfa11c8fa1c57723cdcae59021ac3cba (diff)
downloadcpython-a7c2b303d43fcc0414fed6dca84d9e8dcf1fceab.zip
cpython-a7c2b303d43fcc0414fed6dca84d9e8dcf1fceab.tar.gz
cpython-a7c2b303d43fcc0414fed6dca84d9e8dcf1fceab.tar.bz2
Since xmllib is deprecated now, suppress the DeprecationWarning its test
module necessarily raises.
-rw-r--r--Lib/test/test_xmllib.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/Lib/test/test_xmllib.py b/Lib/test/test_xmllib.py
index 9ea5042..97ae141 100644
--- a/Lib/test/test_xmllib.py
+++ b/Lib/test/test_xmllib.py
@@ -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):