Commit 90371f8b authored by Victor Stinner's avatar Victor Stinner

test_array: make quiet the DeprecationWarning

parent a4e8943d
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
""" """
import unittest import unittest
import warnings
from test import test_support from test import test_support
from weakref import proxy from weakref import proxy
import array, cStringIO import array, cStringIO
...@@ -783,6 +784,8 @@ class BaseTest(unittest.TestCase): ...@@ -783,6 +784,8 @@ class BaseTest(unittest.TestCase):
def test_subclass_with_kwargs(self): def test_subclass_with_kwargs(self):
# SF bug #1486663 -- this used to erroneously raise a TypeError # SF bug #1486663 -- this used to erroneously raise a TypeError
with warnings.catch_warnings():
warnings.filterwarnings("ignore", '', DeprecationWarning)
ArraySubclassWithKwargs('b', newarg=1) ArraySubclassWithKwargs('b', newarg=1)
......
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