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

2.0.2: pyest warnings #173

Open
kloczek opened this issue Apr 17, 2021 · 2 comments
Open

2.0.2: pyest warnings #173

kloczek opened this issue Apr 17, 2021 · 2 comments

Comments

@kloczek
Copy link

kloczek commented Apr 17, 2021

+ PYTHONPATH=/home/tkloczko/rpmbuild/BUILDROOT/python-hamcrest-2.0.2-2.1.fc35.x86_64/usr/lib64/python3.8/site-packages:/home/tkloczko/rpmbuild/BUILDROOT/python-hamcrest-2.0.2-2.1.fc35.x86_64/usr/lib/python3.8/site-packages
+ /usr/bin/python3 -Bm pytest -ra
=========================================================================== test session starts ============================================================================
platform linux -- Python 3.8.9, pytest-6.2.3, py-1.10.0, pluggy-0.13.1
rootdir: /home/tkloczko/rpmbuild/BUILD/PyHamcrest-2.0.2
plugins: 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, pyfakefs-4.4.0, freezegun-0.4.2, flaky-3.7.0, cases-3.4.6, hypothesis-6.10.0
collected 438 items

tests/hamcrest_unit_test/assert_that_test.py .......                                                                                                                 [  1%]
tests/hamcrest_unit_test/base_description_test.py ...........                                                                                                        [  4%]
tests/hamcrest_unit_test/base_matcher_test.py ...                                                                                                                    [  4%]
tests/hamcrest_unit_test/string_description_test.py ........                                                                                                         [  6%]
tests/hamcrest_unit_test/collection/is_empty_test.py .......                                                                                                         [  8%]
tests/hamcrest_unit_test/collection/isdict_containing_test.py .......                                                                                                [  9%]
tests/hamcrest_unit_test/collection/isdict_containingentries_test.py .................                                                                               [ 13%]
tests/hamcrest_unit_test/collection/isdict_containingkey_test.py ..........                                                                                          [ 15%]
tests/hamcrest_unit_test/collection/isdict_containingvalue_test.py ..........                                                                                        [ 18%]
tests/hamcrest_unit_test/collection/isin_test.py ..........                                                                                                          [ 20%]
tests/hamcrest_unit_test/collection/issequence_containing_test.py ..................................                                                                 [ 28%]
tests/hamcrest_unit_test/collection/issequence_containinginanyorder_test.py ............................                                                             [ 34%]
tests/hamcrest_unit_test/collection/issequence_containinginorder_test.py ............................                                                                [ 41%]
tests/hamcrest_unit_test/collection/issequence_onlycontaining_test.py ....................                                                                           [ 45%]
tests/hamcrest_unit_test/core/allof_test.py ..........                                                                                                               [ 47%]
tests/hamcrest_unit_test/core/anyof_test.py .........                                                                                                                [ 50%]
tests/hamcrest_unit_test/core/described_as_test.py ......                                                                                                            [ 51%]
tests/hamcrest_unit_test/core/is_test.py .......                                                                                                                     [ 52%]
tests/hamcrest_unit_test/core/isanything_test.py ....                                                                                                                [ 53%]
tests/hamcrest_unit_test/core/isequal_test.py ...........                                                                                                            [ 56%]
tests/hamcrest_unit_test/core/isinstanceof_test.py ......                                                                                                            [ 57%]
tests/hamcrest_unit_test/core/isnone_test.py ............                                                                                                            [ 60%]
tests/hamcrest_unit_test/core/isnot_test.py .......                                                                                                                  [ 62%]
tests/hamcrest_unit_test/core/issame_test.py .......                                                                                                                 [ 63%]
tests/hamcrest_unit_test/core/raises_test.py .....s.......ss.....                                                                                                    [ 68%]
tests/hamcrest_unit_test/integration/match_equality_test.py .....                                                                                                    [ 69%]
tests/hamcrest_unit_test/number/iscloseto_test.py ...........................                                                                                        [ 75%]
tests/hamcrest_unit_test/number/ordering_comparison_test.py .........                                                                                                [ 77%]
tests/hamcrest_unit_test/object/haslength_test.py .........                                                                                                          [ 79%]
tests/hamcrest_unit_test/object/hasproperty_test.py ..............                                                                                                   [ 82%]
tests/hamcrest_unit_test/object/hasstring_test.py ......                                                                                                             [ 84%]
tests/hamcrest_unit_test/text/isequal_ignoring_case_test.py ........                                                                                                 [ 86%]
tests/hamcrest_unit_test/text/isequal_ignoring_whitespace_test.py .........                                                                                          [ 88%]
tests/hamcrest_unit_test/text/stringcontains_test.py ..............                                                                                                  [ 91%]
tests/hamcrest_unit_test/text/stringcontainsinorder_test.py .........                                                                                                [ 93%]
tests/hamcrest_unit_test/text/stringendswith_test.py ........                                                                                                        [ 95%]
tests/hamcrest_unit_test/text/stringmatches_test.py .............                                                                                                    [ 98%]
tests/hamcrest_unit_test/text/stringstartswith_test.py ........                                                                                                      [100%]

============================================================================= warnings summary =============================================================================
tests/hamcrest_unit_test/core/raises_test.py:97
  /home/tkloczko/rpmbuild/BUILD/PyHamcrest-2.0.2/tests/hamcrest_unit_test/core/raises_test.py:97: DeprecationWarning: invalid escape sequence \d
    raises(AssertionError, "([\d, ]+)"),

tests/hamcrest_unit_test/number/iscloseto_test.py::IsNumericTest::test_numpy_numeric_type_complex64
  /home/tkloczko/rpmbuild/BUILDROOT/python-hamcrest-2.0.2-2.1.fc35.x86_64/usr/lib/python3.8/site-packages/hamcrest/library/number/iscloseto.py:23: ComplexWarning: Casting complex values to real discards the imaginary part
    _ = (fabs(value) + 0 - 0) * 1

-- Docs: https://docs.pytest.org/en/stable/warnings.html
========================================================================= short test summary info ==========================================================================
SKIPPED [1] tests/hamcrest_unit_test/core/raises_test.py:45: Message differs between Python versions
SKIPPED [2] tests/hamcrest_unit_test/core/raises_test.py:139: Message differs between Python versions
================================================================ 435 passed, 3 skipped, 2 warnings in 0.91s ================================================================
@offbyone
Copy link
Member

Just to clarify, this is when numpy tests are running; this doesn't happen in non-numpy testing.

@kloczek
Copy link
Author

kloczek commented Apr 18, 2021

OK so where is potentially issue?

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

2 participants