Comments (5)
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.
This happens if you run the tests on with a newer
pytest
version. We're using a pinned version oftox
to run our test suite, which, in turn, pinspytest
to>= 3.0.0, <4
. Is it an option for you to run the test suite apytest
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.
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.
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.
@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)
- [Django] add command integration for profiling
- Add ability for users to ensure a specific local variable gets logged in error stack trace
- Investigate profiling with sys.monitoring/PEP 669 HOT 3
- W3C Trace Context support
- Fix flaky test
- Make metrics work with `gevent`
- Transaction Source Enum
- `trace` decorator arguments
- uWSGI workers dying in 1.40.0 HOT 35
- `engine.url` can be `None`
- Chalice integration does not support the timeout_warning option HOT 1
- quart_flask_patch breaks asgi
- Delete AWS Lambda functions created by tests regularly HOT 1
- Strawberry integration crashes if no query is in request HOT 1
- Deprecate `user.segment`
- Sending a test error as per "Configure Python SDK" instructions doesn't work but sending from another thread does work HOT 12
- Speed up `grpc` test on py3.10 HOT 3
- Memory leak with unclosed span in opentelemetry integration HOT 5
- Cannot trigger Celery task when I add sentry in settings.py (django) HOT 4
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 sentry-python.