| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
Change _fields_ type to a list of tuples, instead of a list of lists. Modify test.test_ctypes.test_aligned_structures to test also @ctypes.util.struct decorator.
|
Union classes created with get_union_base() are not tested with @ctypes.util.struct since this decorator is for structures, not for unions. |
Sorry, something went wrong.
Later, it would be interesting to add @ctypes.util.union decorator for union classes ;-) |
Sorry, something went wrong.
Agreed. I had left it out of the original PR because it seemed like there was less demand for it, but I'd be happy to review a PR or contribute it myself. |
Sorry, something went wrong.
|
|
||
| fields.append(field) | ||
| # _fields_ is a list of tuples | ||
| fields.append(tuple(field)) |
There was a problem hiding this comment.
If we get take_tuple in 3.16, we should switch to that here :)
Sorry, something went wrong.
|
Merged, thanks for the review. |
Sorry, something went wrong.
|
test_ctypes is failing: https://buildbot.python.org/#/builders/1609/builds/6406 Likely caused by this or one of the other recent ctypes PRs: |
Sorry, something went wrong.
|
It was caused by a combination of PRs. Victor already has a fix up. |
Sorry, something went wrong.
Sorry for the noise. It has already been fixed by #154091. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Change _fields_ type to a list of tuples, instead of a list of lists.
Modify test.test_ctypes.test_aligned_structures to test also @ctypes.util.struct decorator.