Sergey Shepelev
Sergey Shepelev
Ah, now I think AssertionError is what has broken tests. It's an exception raised with `assert` statement. Try plain `Exception` or create custom subclass, though I don't believe it could...
Sorry for leaving this open.
It is Eventlet bug all right. Please show full test module code. In what you provided `def test_foo(tmpdir)` I don't see a reason to call any eventlet code.
That's full module code, thanks.
There is workaround, somewhat ugly, but also providing more test isolation, which is always helpful. Also it will break pytest error values introspection (expanding expressions in `assert`). ``` def test_foo(tmpdir):...
This works. ```python import eventlet eventlet.monkey_patch() import sentry_sdk sentry_sdk.init("dsn") sentry_sdk.capture_message("aoe") ``` Quote from documentation: > It is important to call monkey_patch() as early in the lifetime of the application as...
Code above doesn't mention eventlet.
`monkey_patch()` exists only to help you not change `import socket -> from eventlet.green import socket` (and other modules) in all code. It definitely can not help with recursion error. Please...
@mcepl hi, pytest is a great idea; we wanted to switch about 8 years ago, I don't remember why it didn't happen. - > am on my crusade of eliminating...
> With [this patch](https://github.com/eventlet/eventlet/files/5076724/newdnspython.patch.txt) I am able to run the testsuite and it breaks only on 8 errors: > > `[ 5s] __________________ ERROR collecting tests/stdlib/test_ssl.py ___________________` > > However,...