8000 gh-76961: Possible fix for buildbot failures in test_pep3118 by mdickinson · Pull Request #101587 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-76961: Possible fix for buildbot failures in test_pep3118 #101587

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Possible fix for buildbot failures in test_pep3118
  • Loading branch information
mdickinson committed Feb 5, 2023
commit 3586c0903c0e19675f5cef3d94c8b0158cb0ed09
8 changes: 4 additions & 4 deletions Lib/test/test_ctypes/test_pep3118.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,14 +87,14 @@ class PackedPoint(Structure):
_fields_ = [("x", c_long), ("y", c_long)]

class PointMidPad(Structure):
_fields_ = [("x", c_byte), ("y", c_uint64)]
_fields_ = [("x", c_byte), ("y", c_uint32)]

class PackedPointMidPad(Structure):
_pack_ = 2
_fields_ = [("x", c_byte), ("y", c_uint64)]

class PointEndPad(Structure):
_fields_ = [("x", c_uint64), ("y", c_byte)]
_fields_ = [("x", c_uint32), ("y", c_byte)]

class PackedPointEndPad(Structure):
_pack_ = 2
Expand Down Expand Up @@ -202,9 +202,9 @@ class Complete(Structure):
(Point2, "T{<l:x:<l:y:}".replace('l', s_long), (), Point2),
(Point, "T{<l:x:<l:y:}".replace('l', s_long), (), Point),
(PackedPoint, "T{<l:x:<l:y:}".replace('l', s_long), (), PackedPoint),
(PointMidPad, "T{<b:x:7x<Q:y:}", (), PointMidPad),
(PointMidPad, "T{<b:x:3x<I:y:}", (), PointMidPad),
(PackedPointMidPad, "T{<b:x:x<Q:y:}", (), PackedPointMidPad),
(PointEndPad, "T{<Q:x:<b:y:7x}", (), PointEndPad),
(PointEndPad, "T{<I:x:<b:y:3x}", (), PointEndPad),
(PackedPointEndPad, "T{<Q:x:<b:y:x}", (), PackedPointEndPad),
(EmptyStruct, "T{}", (), EmptyStruct),
# the pep doesn't support unions
Expand Down
0