GithubHelp home page GithubHelp logo

Comments (6)

jborbely avatar jborbely commented on September 29, 2024 1

As of pytest 6.2.0 the FixtureRequest class (and many other classes within _pytest) should be accessed this way.

However, the docs state

Constructing them is not supported (except for MonkeyPatch); they are only meant for use in type annotations. Doing so will emit a deprecation warning, and may become a hard-error in pytest 7.0.

Subclassing them is also not supported. This is not currently enforced at runtime, but is detected by type-checkers such as mypy.

from sybil.

jborbely avatar jborbely commented on September 29, 2024 1

@thirtytwobits You can silence this warning from being displayed by adding the following to your ini file

[pytest]
filterwarnings =
    ignore:A private pytest class or function was used:DeprecationWarning

from sybil.

cjw296 avatar cjw296 commented on September 29, 2024

Do you have the full traceback for one of these?

from sybil.

cjw296 avatar cjw296 commented on September 29, 2024

Yeah, let's see what the latest hoop is that Sybil needs to jump through: pytest-dev/pytest#8832

from sybil.

cjw296 avatar cjw296 commented on September 29, 2024

Fixed in 56daa2f

from sybil.

thirtytwobits avatar thirtytwobits commented on September 29, 2024

Awesome! Tested this change against my code and it works great. Thanks.

from sybil.

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.