summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_xmllib.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/test_xmllib.py')
-rw-r--r--Lib/test/test_xmllib.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_xmllib.py b/Lib/test/test_xmllib.py
index 97ae141..6756b64 100644
--- a/Lib/test/test_xmllib.py
+++ b/Lib/test/test_xmllib.py
@@ -16,7 +16,6 @@ testdoc = """\
import warnings
warnings.filterwarnings("ignore", ".* xmllib .* obsolete.*",
DeprecationWarning)
-del warnings
import test_support
import unittest
@@ -33,6 +32,7 @@ class XMLParserTestCase(unittest.TestCase):
def test_main():
test_support.run_unittest(XMLParserTestCase)
+ warnings.resetwarnings()
if __name__ == "__main__":