Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

0.4.8: pytest warning #202

Open
kloczek opened this issue Jun 19, 2021 · 0 comments
Open

0.4.8: pytest warning #202

kloczek opened this issue Jun 19, 2021 · 0 comments

Comments

@kloczek
Copy link

kloczek commented Jun 19, 2021

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-pyasn1-0.4.8-6.fc35.x86_64/usr/lib64/python3.8/site-packages:/home/tkloczko/rpmbuild/BUILDROOT/python-pyasn1-0.4.8-6.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/pyasn1-0.4.8
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 1143 items

. .                                                                                                                                                                  [  0%]
tests/test_debug.py ..                                                                                                                                               [  0%]
tests/codec/ber/test_decoder.py .................................................................................................................................... [ 11%]
..................................................................                                                                                                   [ 17%]
tests/codec/ber/test_encoder.py .................................................................................................................................... [ 29%]
........................................................                                                                                                             [ 34%]
tests/codec/cer/test_decoder.py ............................                                                                                                         [ 36%]
tests/codec/cer/test_encoder.py .....................................................................................                                                [ 43%]
tests/codec/der/test_decoder.py ..........................                                                                                                           [ 46%]
tests/codec/der/test_encoder.py ...........................................                                                                                          [ 50%]
tests/codec/native/test_decoder.py .............                                                                                                                     [ 51%]
tests/codec/native/test_encoder.py ................                                                                                                                  [ 52%]
tests/compat/test_binary.py ......                                                                                                                                   [ 53%]
tests/compat/test_integer.py ....                                                                                                                                    [ 53%]
tests/compat/test_octets.py .............                                                                                                                            [ 54%]
tests/type/test_char.py ...............................................................................................                                              [ 62%]
tests/type/test_constraint.py .............................................                                                                                          [ 66%]
tests/type/test_namedtype.py .................                                                                                                                       [ 68%]
tests/type/test_namedval.py ......                                                                                                                                   [ 68%]
tests/type/test_opentype.py ...                                                                                                                                      [ 69%]
tests/type/test_tag.py ...............                                                                                                                               [ 70%]
tests/type/test_univ.py ............................................................................................................................................ [ 82%]
.................................................................................................................................................................... [ 97%]
.............                                                                                                                                                        [ 98%]
tests/type/test_useful.py .....................                                                                                                                      [100%]

============================================================================= warnings summary =============================================================================
tests/codec/ber/test_encoder.py::BitStringEncoderWithSchemaTestCase::testDefModeChunked
tests/codec/ber/test_encoder.py::BitStringEncoderWithSchemaTestCase::testDefModeChunked
tests/codec/ber/test_encoder.py::BitStringEncoderWithSchemaTestCase::testIndefModeChunked
tests/codec/ber/test_encoder.py::BitStringEncoderWithSchemaTestCase::testIndefModeChunked
tests/codec/native/test_decoder.py::BitStringDecoderTestCase::testSimple
tests/codec/native/test_decoder.py::BitStringDecoderTestCase::testSimple
tests/type/test_univ.py::BitStringTestCase::testBinDefault
tests/type/test_univ.py::BitStringTestCase::testHexDefault
  /home/tkloczko/rpmbuild/BUILDROOT/python-pyasn1-0.4.8-6.fc35.x86_64/usr/lib/python3.8/site-packages/pyasn1/type/univ.py:711: DeprecationWarning: __int__ returned non-int (type SizedInteger).  The ability to return an instance of a strict subclass of int is deprecated, and may be removed in a future version of Python.
    return SizedInteger(value).setBitLength(len(value))

-- Docs: https://docs.pytest.org/en/stable/warnings.html
==================================================================== 1142 passed, 8 warnings in 37.08s =====================================================================
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant