dropbox/stone

3.2.1: test suite warnings

kloczek opened this issue · 2 comments

+ /usr/bin/python3 -Bm pytest -ra
=========================================================================== test session starts ============================================================================
platform linux -- Python 3.8.8, pytest-6.2.2, py-1.10.0, pluggy-0.13.1
rootdir: /home/tkloczko/rpmbuild/BUILD/stone-3.2.1
plugins: flaky-3.6.1, forked-1.3.0, shutil-1.7.0, virtualenv-1.7.0, asyncio-0.14.0, expect-1.1.0, cov-2.11.1, mock-3.5.1, httpbin-1.0.0, xdist-2.2.1, flake8-1.0.7, timeout-1.4.2, betamax-0.8.1, hypothesis-6.8.1, pyfakefs-4.4.0, freezegun-0.4.2
collected 162 items

test/test_backend.py ..........                                                                                                                                      [  6%]
test/test_cli.py .                                                                                                                                                   [  6%]
test/test_js_client.py ...                                                                                                                                           [  8%]
test/test_python_client.py ......                                                                                                                                    [ 12%]
test/test_python_gen.py ..............................................................                                                                               [ 50%]
test/test_python_type_stubs.py ........                                                                                                                              [ 55%]
test/test_python_types.py .....                                                                                                                                      [ 58%]
test/test_stone.py .........................................                                                                                                         [ 83%]
test/test_stone_internal.py ........                                                                                                                                 [ 88%]
test/test_stone_route_whitelist.py .......                                                                                                                           [ 93%]
test/test_tsd_client.py ...                                                                                                                                          [ 95%]
test/test_tsd_types.py ........                                                                                                                                      [100%]

============================================================================= warnings summary =============================================================================
test/test_stone.py: 406 warnings
test/test_stone_route_whitelist.py: 35 warnings
  /home/tkloczko/rpmbuild/BUILD/stone-3.2.1/stone/frontend/ir_generator.py:1077: DeprecationWarning: inspect.getargspec() is deprecated since Python 3.0, use inspect.signature() or inspect.getfullargspec()
    argspec = inspect.getargspec(data_type_class.__init__)  # noqa: E501 # pylint: disable=deprecated-method,useless-suppression

-- Docs: https://docs.pytest.org/en/stable/warnings.html
==================================================================== 162 passed, 441 warnings in 20.13s ====================================================================

Thanks for the report! I'll ask the team to clean that up.

Ran python3 -Bm pytest -ra locally on hash af56116 and warning are no longer present.