Skip to content
This repository has been archived by the owner on Jun 17, 2023. It is now read-only.

14.3.0: pytest warnings #41

Open
kloczek opened this issue Jun 15, 2021 · 3 comments
Open

14.3.0: pytest warnings #41

kloczek opened this issue Jun 15, 2021 · 3 comments

Comments

@kloczek
Copy link

kloczek commented Jun 15, 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-characteristic-14.3.0-2.fc35.x86_64/usr/lib64/python3.8/site-packages:/home/tkloczko/rpmbuild/BUILDROOT/python-characteristic-14.3.0-2.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/characteristic-14.3.0
plugins: forked-1.3.0, shutil-1.7.0, virtualenv-1.7.0, expect-1.1.0, httpbin-1.0.0, xdist-2.2.1, 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, Faker-8.8.0
collected 89 items

. .                                                                                                                                                                  [  1%]
test_characteristic.py .......................................................................................                                                       [100%]

============================================================================= warnings summary =============================================================================
test_characteristic.py::TestWithInit::test_defaults
  /home/tkloczko/rpmbuild/BUILD/characteristic-14.3.0/test_characteristic.py:395: DeprecationWarning: `defaults` has been deprecated in 14.0, please use the `Attribute` class instead.
    @with_init(["a", "b"], defaults={"b": 2})

test_characteristic.py::TestWithInit::test_defaults_conflict
  /home/tkloczko/rpmbuild/BUILD/characteristic-14.3.0/test_characteristic.py:414: DeprecationWarning: `defaults` has been deprecated in 14.0, please use the `Attribute` class instead.
    @with_init([Attribute("a")], defaults={"a": 42})

test_characteristic.py::TestAttributes::test_leaves_init_alone
  /home/tkloczko/rpmbuild/BUILD/characteristic-14.3.0/test_characteristic.py:586: DeprecationWarning: `create_init` has been deprecated in 14.0, please use `apply_with_init`.
    @attributes(["a"], create_init=False)

test_characteristic.py::TestEnsureAttributes::test_leaves_attribute_alone
test_characteristic.py::TestEnsureAttributes::test_converts_rest
test_characteristic.py::TestEnsureAttributes::test_defaults
test_characteristic.py::TestEnsureAttributes::test_defaults_Attribute
  /usr/lib/python3.8/site-packages/_pytest/python.py:183: DeprecationWarning: `defaults` has been deprecated in 14.0, please use the `Attribute` class instead.
    result = testfunction(**testargs)

-- Docs: https://docs.pytest.org/en/stable/warnings.html
====================================================================== 88 passed, 7 warnings in 7.18s ======================================================================
@kloczek
Copy link
Author

kloczek commented Jun 15, 2021

I forgot .. to use latest pytest it is necessary to fix setup.cfg:

--- a/setup.cfg~        2014-12-19 13:48:48.000000000 +0000
+++ b/setup.cfg 2021-06-15 20:25:44.907135078 +0100
@@ -1,4 +1,4 @@
-[pytest]
+[tools:pytest]
 minversion = 2.6
 strict = true
 norecursedirs = .* build dist test_data *.egg

BTW: do you have any plans to make new release?

@hynek
Copy link
Owner

hynek commented Jun 16, 2021

No I don't plan on it, unless there's an actual bug in the implementation which is highly unlikely at this point. :)

@hynek
Copy link
Owner

hynek commented Jun 16, 2021

Oops, I thought this was a different project (first) but same thing is true. charactersitic is unmaintained. I might push out a release iff it breaks on some new Python version, is trivially to fix, and someone asks nicely.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants