Code Monkey home page Code Monkey logo

Comments (5)

okken avatar okken commented on June 6, 2024 1

I've never used retry, I'll take a look.

from pytest-check.

okken avatar okken commented on June 6, 2024

hmmmm. this looks like a defect for retry.
Not sure what this has to do with pytest-check

However, if the defect is that retry and pytest-check don't play nice together, you are correct.
pytest-check allows the test proper to pass and changes the result in a hook function.
retry would have to utilize pytest hook functions to tell if a test failed, not it's current method.

However, pytest-rerunfailures is compatible with pytest-check

from pytest-check.

KjellMorgenstern avatar KjellMorgenstern commented on June 6, 2024

I am currently investigating a similar error:

level = 3

    def get_full_context(level):
        (_, filename, line, funcname, contextlist) = inspect.stack()[level][0:5]
        filename = os.path.relpath(filename)
>       context = contextlist[0].strip()
E       TypeError: 'NoneType' object is not subscriptable

/usr/local/lib/python3.8/dist-packages/pytest_check/check_methods.py:294: TypeError

The following plugins are used:

platform linux -- Python 3.8.10, pytest-7.1.2, pluggy-1.0.0
Test order randomisation NOT enabled. Enable with --random-order or --random-order-bucket=<bucket_type>
rootdir: /tester, configfile: pytest.ini
plugins: icdiff-0.6, check-2.1.4, xdist-3.2.0, forked-1.6.0, reporter-0.5.2, html-3.1.1, metadata-2.0.1, xvfb-2.0.0, random-order-1.0.4, reporter-html1-0.8.2

I already uninstalled 'flaky' (not used in this specific test anyways), and 'retry' is not installed

Using a minimal test:

    def test_minimal_check(self, check):
        check.is_true(False, "This always fails")

from pytest-check.

okken avatar okken commented on June 6, 2024

Sorry @KjellMorgenstern, I can't reproduce your issue.

from pytest-check.

okken avatar okken commented on June 6, 2024

If you can reproduce it, please:

  1. open a new issue. this one is closed
  2. provide a full test file that causes the problem
  3. minimal plugin list that causes the problem.

It is possible that there are other plugins that are not compatible with pytest-check, but I don't really want to hunt them down.

Thanks.

from pytest-check.

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.