Commit c5b0195e authored by Raymond Hettinger's avatar Raymond Hettinger

Suppress deprecation warnings.

parent fa3cf217
......@@ -9,6 +9,7 @@ import unittest
import threading
from contextlib import * # Tests __all__
from test import support
import warnings
class ContextManagerTestCase(unittest.TestCase):
......@@ -331,7 +332,9 @@ class LockContextTestCase(unittest.TestCase):
# This is needed to make the test actually run under regrtest.py!
def test_main():
support.run_unittest(__name__)
with warnings.catch_warnings():
warnings.simplefilter('ignore')
support.run_unittest(__name__)
if __name__ == "__main__":
test_main()
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment