Giter Site home page Giter Site logo

Comments (5)

sentrivana avatar sentrivana commented on July 26, 2024

Hey @kloczek, thanks for reporting this.

This happens if you run the tests on with a newer pytest version. We're using a pinned version of tox to run our test suite, which, in turn, pins pytest to >= 3.0.0, <4. Is it an option for you to run the test suite a pytest version from that range?

We have plans for updating our tooling in the next month or so, which might also include removing the pin on the (pretty ancient) tox version, but this will still take a bit, so in the meantime, the safest bet is to use the same pytest version we're using.

from sentry-python.

kloczek avatar kloczek commented on July 26, 2024

This happens if you run the tests on with a newer pytest version. We're using a pinned version of tox to run our test suite, which, in turn, pins pytest to >= 3.0.0, <4. Is it an option for you to run the test suite a pytest version from that range?

Sorry I'm not going to waste time on one package with python module because it still requires some ancient version of pytest (last pytest 3.x has been released +5 years ago and latest version 8.0.0 has been released week ago).

from sentry-python.

szokeasaurusrex avatar szokeasaurusrex commented on July 26, 2024

Sorry I'm not going to waste time on one package with python module because it still requires some ancient version of pytest (last pytest 3.x has been released +5 years ago and latest version 8.0.0 has been released week ago).

Hi @kloczek, I completely understand your frustration here. I am investigating this problem, and I will let you know as soon as I have a fix, or at least, a better workaround.

from sentry-python.

sentrivana avatar sentrivana commented on July 26, 2024

Just a correction, my bad -- the tox version we're using doesn't actually have a restriction on pytest; only the tox[testing] extra does (which we don't use). We're still using an older pytest version though, but not quite as ancient as I wrote above.

from sentry-python.

szokeasaurusrex avatar szokeasaurusrex commented on July 26, 2024

@kloczek This problem is fixed by #2712.

Until #2712 is released, you can work around the issue by using pytest <8.0.0. pytest 7.x.x should work fine for this purpose; the >= 3.0.0, <4 requirement @sentrivana referred to applies only to the tox "testing" extra that we don't use. We use pytest==6.2.5 in our Python 3.8 tests, so if for any reason you struggle with 7.x.x, you can try 6.x.x

from sentry-python.

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.