]> granicus.if.org Git - python/commitdiff
remove warnings supression
authorBenjamin Peterson <benjamin@python.org>
Wed, 1 Jul 2009 01:39:51 +0000 (01:39 +0000)
committerBenjamin Peterson <benjamin@python.org>
Wed, 1 Jul 2009 01:39:51 +0000 (01:39 +0000)
Lib/test/test_contextlib.py

index bdf4776b57c0c56e7cfe1f56fb41fc7c8b28e6d4..f000f7638c586e315bf46ef26ac61e8cea694de5 100644 (file)
@@ -9,7 +9,6 @@ import unittest
 import threading
 from contextlib import *  # Tests __all__
 from test import support
-import warnings
 
 class ContextManagerTestCase(unittest.TestCase):
 
@@ -210,9 +209,7 @@ class LockContextTestCase(unittest.TestCase):
 
 # 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()