| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
|
Would it be easy to add a test case for this issue? |
Sorry, something went wrong.
|
Ah yeah good point, let me have a look :) |
Sorry, something went wrong.
|
I added a test case, but I don't think it's possible to easily cover/simulate something that would happen like in #666. But the tests do flex the PyErr_Occurred path. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
What is this PR?
This PR addresses an issue I found while working on #666 and reported in the description there.
Looking at the usages of unpack_callback_uint32 (here for example, which calls into this) it seems like it checks for error values -2 and -3, but -1 will just raise ValueError("Unpack failed: error = %d" % (ret,)).
It believe it should just raise to raise the existing exception set by PyErr_SetString if it exists. This PR addresses that problem here and another place.