diff Lib/test/test_contextlib.py @ 55021:b168dccee602

remove warnings supression
author Benjamin Peterson <benjamin@python.org>
date Wed, 01 Jul 2009 01:39:51 +0000
parents e3fa2ddbb3a3
children 8d3ff2fbbe4b
line wrap: on
line diff
--- a/Lib/test/test_contextlib.py	Wed Jul 01 01:38:23 2009 +0000
+++ b/Lib/test/test_contextlib.py	Wed Jul 01 01:39:51 2009 +0000
@@ -9,7 +9,6 @@
 import threading
 from contextlib import *  # Tests __all__
 from test import support
-import warnings
 
 class ContextManagerTestCase(unittest.TestCase):
 
@@ -210,9 +209,7 @@
 
 # This is needed to make the test actually run under regrtest.py!
 def test_main():
-    with warnings.catch_warnings():
-        warnings.simplefilter('ignore')
-        support.run_unittest(__name__)
+    support.run_unittest(__name__)
 
 if __name__ == "__main__":
     test_main()