mirror of
https://github.com/python/cpython.git
synced 2026-05-27 12:58:16 +00:00
test_array: make quiet the DeprecationWarning
This commit is contained in:
parent
59729ff609
commit
42dcc679c2
1 changed files with 4 additions and 1 deletions
|
|
@ -4,6 +4,7 @@
|
|||
"""
|
||||
|
||||
import unittest
|
||||
import warnings
|
||||
from test import test_support
|
||||
from weakref import proxy
|
||||
import array, cStringIO
|
||||
|
|
@ -783,7 +784,9 @@ def test_bug_782369(self):
|
|||
|
||||
def test_subclass_with_kwargs(self):
|
||||
# SF bug #1486663 -- this used to erroneously raise a TypeError
|
||||
ArraySubclassWithKwargs('b', newarg=1)
|
||||
with warnings.catch_warnings():
|
||||
warnings.filterwarnings("ignore", '', DeprecationWarning)
|
||||
ArraySubclassWithKwargs('b', newarg=1)
|
||||
|
||||
|
||||
class StringTest(BaseTest):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue