Example test that would generate "Windows fatal exception: access violation" #13333
Unanswered
trajano
asked this question in
Show and tell
Replies: 2 comments 2 replies
-
I kind of wished pytest-dev/pytest-rerunfailures#112 was actually supported but it does not seem to work on module level fixtures. |
Beta Was this translation helpful? Give feedback.
0 replies
-
"Windows fatal exception: access violation" basically is the equivalent of "an exception occurred somewhere". This particular case will most likely have nothing to do with the others you linked. You might want to try passing |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This is a test I wrote to try and get the "Windows fatal exception: access violation" alluded to by #11593 and #7634
This test creates a Thread that would run an asyncio server. In my real test I was planning to run a server on the side started up as a separate thread along side TestContainer docker containers. However, if there's an error I can't seem to see it anywhere and the multiple trace reports that are practically useless in my situation are all I have left with.
In this case I made a simple Kafka listener that would just poll indefinitely and a asyncio server that raises a runtime error after a few seconds. All of which I gathered together.
When it triggers the exception, it spits out those thread traces like
Beta Was this translation helpful? Give feedback.
All reactions