remove warnings supression
This commit is contained in:
parent
04e40c1b48
commit
c8c0d78d09
|
@ -9,7 +9,6 @@ import unittest
|
||||||
import threading
|
import threading
|
||||||
from contextlib import * # Tests __all__
|
from contextlib import * # Tests __all__
|
||||||
from test import support
|
from test import support
|
||||||
import warnings
|
|
||||||
|
|
||||||
class ContextManagerTestCase(unittest.TestCase):
|
class ContextManagerTestCase(unittest.TestCase):
|
||||||
|
|
||||||
|
@ -210,9 +209,7 @@ class LockContextTestCase(unittest.TestCase):
|
||||||
|
|
||||||
# This is needed to make the test actually run under regrtest.py!
|
# This is needed to make the test actually run under regrtest.py!
|
||||||
def test_main():
|
def test_main():
|
||||||
with warnings.catch_warnings():
|
support.run_unittest(__name__)
|
||||||
warnings.simplefilter('ignore')
|
|
||||||
support.run_unittest(__name__)
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
test_main()
|
test_main()
|
||||||
|
|
Loading…
Reference in New Issue