Skip to content

7.6.3: pytest warnings #3219

@kloczek

Description

@kloczek

Just normal build, install and test cycle used on building package from non-root account:

  • "setup.py build"
  • "setup.py install --root </install/prefix>"
  • "pytest with PYTHONPATH pointing to setearch and sitelib inside </install/prefix>
+ PYTHONPATH=/home/tkloczko/rpmbuild/BUILDROOT/python-ipywidgets-7.6.3-3.fc35.x86_64/usr/lib64/python3.8/site-packages:/home/tkloczko/rpmbuild/BUILDROOT/python-ipywidgets-7.6.3-3.fc35.x86_64/usr/lib/python3.8/site-packages
+ PYTHONDONTWRITEBYTECODE=1
+ /usr/bin/pytest -ra
=========================================================================== test session starts ============================================================================
platform linux -- Python 3.8.9, pytest-6.2.4, py-1.10.0, pluggy-0.13.1
benchmark: 3.4.1 (defaults: timer=time.perf_counter disable_gc=False min_rounds=5 min_time=0.000005 max_time=1.0 calibration_precision=10 warmup=False warmup_iterations=100000)
rootdir: /home/tkloczko/rpmbuild/BUILD/ipywidgets-7.6.3
plugins: forked-1.3.0, shutil-1.7.0, virtualenv-1.7.0, expect-1.1.0, httpbin-1.0.0, flake8-1.0.7, timeout-1.4.2, betamax-0.8.1, freezegun-0.4.2, case-1.5.3, isort-1.3.0, aspectlib-1.5.2, asyncio-0.15.1, toolbox-0.5, xprocess-0.17.1, aiohttp-0.3.0, checkdocs-2.7.0, mock-3.6.1, rerunfailures-9.1.1, requests-mock-1.9.3, cov-2.12.1, pyfakefs-4.5.0, cases-3.6.1, flaky-3.7.0, hypothesis-6.14.0, benchmark-3.4.1, xdist-2.3.0, Faker-8.8.1
collected 159 items

. .                                                                                                                                                                  [  0%]
ipywidgets/tests/test_embed.py ........                                                                                                                              [  5%]
ipywidgets/widgets/tests/test_docutils.py ..                                                                                                                         [  6%]
ipywidgets/widgets/tests/test_interaction.py ........................................                                                                                [ 32%]
ipywidgets/widgets/tests/test_link.py ..                                                                                                                             [ 33%]
ipywidgets/widgets/tests/test_selectioncontainer.py ...                                                                                                              [ 35%]
ipywidgets/widgets/tests/test_send_state.py ..                                                                                                                       [ 36%]
ipywidgets/widgets/tests/test_set_state.py ..........                                                                                                                [ 43%]
ipywidgets/widgets/tests/test_traits.py ..............................                                                                                               [ 62%]
ipywidgets/widgets/tests/test_widget.py ..                                                                                                                           [ 63%]
ipywidgets/widgets/tests/test_widget_box.py ....                                                                                                                     [ 65%]
ipywidgets/widgets/tests/test_widget_float.py ...                                                                                                                    [ 67%]
ipywidgets/widgets/tests/test_widget_image.py ................                                                                                                       [ 77%]
ipywidgets/widgets/tests/test_widget_output.py ........                                                                                                              [ 82%]
ipywidgets/widgets/tests/test_widget_selection.py .......                                                                                                            [ 87%]
ipywidgets/widgets/tests/test_widget_string.py ..                                                                                                                    [ 88%]
ipywidgets/widgets/tests/test_widget_templates.py ................                                                                                                   [ 98%]
ipywidgets/widgets/tests/test_widget_upload.py ..                                                                                                                    [100%]

============================================================================= warnings summary =============================================================================
../../../../../usr/lib/python3.8/site-packages/traitlets/tests/test_traitlets.py:1739
  /usr/lib/python3.8/site-packages/traitlets/tests/test_traitlets.py:1739: DeprecationWarning: Keyword `trait` is deprecated in traitlets 5.0, use `value_trait` instead
    value = Dict(trait=Unicode(),

../../../../../usr/lib/python3.8/site-packages/traitlets/tests/test_traitlets.py:1754
  /usr/lib/python3.8/site-packages/traitlets/tests/test_traitlets.py:1754: DeprecationWarning: Keyword `traits` is deprecated in traitlets 5.0, use `per_key_traits` instead
    value = Dict(traits={'foo': Int()},

../../../../../usr/lib/python3.8/site-packages/traitlets/tests/test_traitlets.py:1784
  /usr/lib/python3.8/site-packages/traitlets/tests/test_traitlets.py:1784: DeprecationWarning: Keyword `trait` is deprecated in traitlets 5.0, use `value_trait` instead
    value = Dict(trait=Unicode(),

../../../../../usr/lib/python3.8/site-packages/traitlets/tests/test_traitlets.py:1784
  /usr/lib/python3.8/site-packages/traitlets/tests/test_traitlets.py:1784: DeprecationWarning: Keyword `traits` is deprecated in traitlets 5.0, use `per_key_traits` instead
    value = Dict(trait=Unicode(),

ipywidgets/widgets/tests/test_interaction.py: 11 warnings
  /home/tkloczko/rpmbuild/BUILD/ipywidgets-7.6.3/ipywidgets/widgets/widget_selection.py:121: DeprecationWarning: Support for mapping types has been deprecated and will be dropped in a future release.
    warnings.warn("Support for mapping types has been deprecated and will be dropped in a future release.", DeprecationWarning)

ipywidgets/widgets/tests/test_interaction.py: 12 warnings
  /home/tkloczko/rpmbuild/BUILD/ipywidgets-7.6.3/ipywidgets/widgets/interaction.py:141: DeprecationWarning: Using function annotations to implicitly specify interactive controls is deprecated. Use an explicit keyword argument for the parameter instead.
    warn("Using function annotations to implicitly specify interactive controls is deprecated. Use an explicit keyword argument for the parameter instead.", DeprecationWarning)

-- Docs: https://docs.pytest.org/en/stable/warnings.html
===================================================================== 158 passed, 27 warnings in 8.63s =====================================================================

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions