Comments (5)
I've never used retry, I'll take a look.
from pytest-check.
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.
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.
Sorry @KjellMorgenstern, I can't reproduce your issue.
from pytest-check.
If you can reproduce it, please:
- open a new issue. this one is closed
- provide a full test file that causes the problem
- 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)
- Feature request: Add new test outcome status ? HOT 1
- Test is not marked as xfailed when pytest.xfail() called after a failure. HOT 2
- RFE: is it possible to start making github releases?🤔 HOT 6
- pytest check is not reporting all failures distributed across multiple python functions or setup fixture called within a test function HOT 3
- Linux environment does not have version 2.1.5 HOT 3
- Document & test: custom error message for check.raises HOT 2
- raises match argument HOT 1
- Is the 'raises' parameter in xfail ignored? HOT 1
- `pytest-check` causes `pytest-xdist` testing to fail HOT 1
- Add new check type: match - use regular expressions to tests againgst a string HOT 1
- pytest_html HOT 1
- How to have all failure on logging pytestfile HOT 1
- [v2.2.3] ExceptionRepr creation is not compatible with pytest < 7.3. HOT 2
- INTERNALERROR after upgrading package to 2.2.3 or 2.2.4 version HOT 5
- Add an xdist test
- Incorrect arguments to `ExceptionRepr` HOT 5
- d7afe0d6570c24d8d9ecc4443be9a765a0b85c2c HOT 1
- d7afe0d6570c24d8d9ecc4443be9a765a0b85c2c
- type-hinting the project
- Include a `check.match` and `check.not_match` for regex comparison
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pytest-check.