Optional bytes/fixed encoding can fail in python 3
gth828r opened this issue · 1 comments
gth828r commented
There needs to be an explicit check in the python_to_union function against the PyBytes_Check function in order to support optional Fixed and Bytes types in Python 3. This is not a problem under Python 2, because _PyUnicode_CheckExact presumably passes there.
gth828r commented
I had been putting each individual test of a type within a union under the union test, but that is causing dependencies in my commits. I'm going to split out the test for this one into its own function.