|
9 | 9 | importpyclbr |
10 | 10 | fromunittestimportTestCase,mainasunittest_main |
11 | 11 | fromtest.test_importlibimportutilastest_importlib_util |
| 12 | +importwarnings |
12 | 13 |
|
13 | 14 |
|
14 | 15 | StaticMethodType=type(staticmethod(lambda:None)) |
@@ -218,9 +219,13 @@ def test_others(self): |
218 | 219 |
|
219 | 220 | # These were once some of the longest modules. |
220 | 221 | cm('random',ignore=('Random',))# from _random import Random as CoreGenerator |
221 | | -cm('cgi',ignore=('log',))# set with = in module |
| 222 | +withwarnings.catch_warnings(): |
| 223 | +warnings.simplefilter('ignore',DeprecationWarning) |
| 224 | +cm('cgi',ignore=('log',))# set with = in module |
222 | 225 | cm('pickle',ignore=('partial','PickleBuffer')) |
223 | | -cm('sre_parse',ignore=('dump','groups','pos'))# from sre_constants import *; property |
| 226 | +withwarnings.catch_warnings(): |
| 227 | +warnings.simplefilter('ignore',DeprecationWarning) |
| 228 | +cm('sre_parse',ignore=('dump','groups','pos'))# from sre_constants import *; property |
224 | 229 | cm( |
225 | 230 | 'pdb', |
226 | 231 | # pyclbr does not handle elegantly `typing` or properties |
|