test_array: make quiet the DeprecationWarning

This commit is contained in:
Victor Stinner 2011-07-05 13:14:17 +02:00
parent 59729ff609
commit 42dcc679c2
1 changed files with 4 additions and 1 deletions

View File

@ -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):
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)