Git Product home page Git Product logo

Comments (4)

kloczek avatar kloczek commented on May 25, 2024

List of installed modules in build env:

Package                       Version
----------------------------- -------------------
alabaster                     0.7.12
appdirs                       1.4.4
attrs                         21.4.0
Babel                         2.9.1
build                         0.7.0
chardet                       4.0.0
charset-normalizer            2.0.10
cycler                        0.11.0
dbus-python                   1.2.18
distro                        1.6.0
docutils                      0.17.1
extras                        1.0.0
fixtures                      3.0.0
fonttools                     4.28.5
gpg                           1.16.0-unknown
idna                          3.3
imagesize                     1.3.0
importlib-metadata            4.10.0
iniconfig                     1.1.1
Jinja2                        3.0.3
kiwisolver                    1.3.2
libcomps                      0.1.18
lit                           13.0.0
lxml                          4.7.1
Mako                          1.1.6.dev0
Markdown                      3.3.6
MarkupSafe                    2.0.1
matplotlib                    3.5.1
meson                         0.60.3
numpy                         1.22.0
olefile                       0.46
packaging                     21.3
pbr                           5.8.0
pep517                        0.12.0
Pillow                        9.0.0
pip                           21.3.1
pluggy                        1.0.0
py                            1.11.0
Pygments                      2.11.2
PyGObject                     3.42.0
pyparsing                     3.0.6
pytest                        6.2.5
python-dateutil               2.8.2
pytz                          2021.1
requests                      2.27.1
rpm                           4.17.0
scour                         0.38.2
setuptools                    60.1.0.post20211225
six                           1.16.0
smartypants                   2.0.1
snowballstemmer               2.2.0
Sphinx                        4.3.2.dev20220106
sphinxcontrib-applehelp       1.0.2.dev20211227
sphinxcontrib-devhelp         1.0.2.dev20211228
sphinxcontrib-htmlhelp        2.0.0
sphinxcontrib-jsmath          1.0.1.dev20211227
sphinxcontrib-qthelp          1.0.3.dev20211227
sphinxcontrib-serializinghtml 1.1.5
testtools                     2.5.0
toml                          0.10.2
tomli                         2.0.0
typogrify                     2.0.7
urllib3                       1.26.7
wheel                         0.37.1
zipp                          3.7.0

from pytest-dependency.

RKrahl avatar RKrahl commented on May 25, 2024

Hi @kloczek, many thanks for the report!

The issue is known, see #50. It is fixed by #51 in the develop branch, but unfortunately not yet released. It was caused by a change in pytest 6.2.0. Please note that the issue only affects pytest-dependency's own test suite. The plugin itself is not affected and works fine with the current pytest version.

Your options to work around this until the release of pytest-dependency 0.6.0 would be:

  • switch off the test during RPM build,
  • use pytest 6.1.2 or older (only for the RPM build, the built package will work fine with newer pytest versions),
  • backport #51, e.g. apply the patch from this PR for the build.

from pytest-dependency.

kloczek avatar kloczek commented on May 25, 2024

OK so will try to test that commit :)
Good to know that this issue only affects test suite :)

Thx.

from pytest-dependency.

kloczek avatar kloczek commented on May 25, 2024

Tested and looks like it works 😄

+ PYTHONPATH=/home/tkloczko/rpmbuild/BUILDROOT/python-pytest-dependency-0.5.1-2.fc35.x86_64/usr/lib64/python3.8/site-packages:/home/tkloczko/rpmbuild/BUILDROOT/python-pytest-dependency-0.5.1-2.fc35.x86_64/usr/lib/python3.8/site-packages
+ /usr/bin/pytest -ra
=========================================================================== test session starts ============================================================================
platform linux -- Python 3.8.13, pytest-7.1.1, pluggy-1.0.0
rootdir: /home/tkloczko/rpmbuild/BUILD/pytest-dependency-0.5.1
plugins: dependency-0.5.1
collected 27 items

tests/test_01_marker.py ..                                                                                                                                           [  7%]
tests/test_02_simple_dependency.py ......                                                                                                                            [ 29%]
tests/test_03_class.py ...                                                                                                                                           [ 40%]
tests/test_03_multiple_dependency.py .                                                                                                                               [ 44%]
tests/test_03_param.py .                                                                                                                                             [ 48%]
tests/test_03_runtime.py .                                                                                                                                           [ 51%]
tests/test_03_scope.py .......                                                                                                                                       [ 77%]
tests/test_03_skipmsgs.py .                                                                                                                                          [ 81%]
tests/test_04_automark.py ...                                                                                                                                        [ 92%]
tests/test_04_ignore_unknown.py ..                                                                                                                                   [100%]

============================================================================ 27 passed in 2.04s ============================================================================

What about new release? I think that at the moment is enough changes acummulated to make it.
Thx 😄

from pytest-dependency.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.