8000 Possible fix for buildbot failures in test_pep3118 · python/cpython@3586c09 · GitHub
[go: up one dir, main page]

Skip to content

Commit 3586c09

Browse files
committed
Possible fix for buildbot failures in test_pep3118
1 parent ffcb822 commit 3586c09

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Lib/test/test_ctypes/test_pep3118.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -87,14 +87,14 @@ class PackedPoint(Structure):
8787
_fields_ = [("x", c_long), ("y", c_long)]
8888

8989
class PointMidPad(Structure):
90-
_fields_ = [("x", c_byte), ("y", c_uint64)]
90+
_fields_ = [("x", c_byte), ("y", c_uint32)]
9191

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

9696
class PointEndPad(Structure):
97-
_fields_ = [("x", c_uint64), ("y", c_byte)]
97+
_fields_ = [("x", c_uint32), ("y", c_byte)]
9898

9999
class PackedPointEndPad(Structure):
100100
_pack_ = 2
@@ -202,9 +202,9 @@ class Complete(Structure):
202202
(Point2, "T{<l:x:<l:y:}".replace('l', s_long), (), Point2),
203203
(Point, "T{<l:x:<l:y:}".replace('l', s_long), (), Point),
204204
(PackedPoint, "T{<l:x:<l:y:}".replace('l', s_long), (), PackedPoint),
205-
(PointMidPad, "T{<b:x:7x<Q:y:}", (), PointMidPad),
205+
(PointMidPad, "T{<b:x:3x<I:y:}", (), PointMidPad),
206206
(PackedPointMidPad, "T{<b:x:x<Q:y:}", (), PackedPointMidPad),
207-
(PointEndPad, "T{<Q:x:<b:y:7x}", (), PointEndPad),
207+
(PointEndPad, "T{<I:x:<b:y:3x}", (), PointEndPad),
208208
(PackedPointEndPad, "T{<Q:x:<b:y:x}", (), PackedPointEndPad),
209209
(EmptyStruct, "T{}", (), EmptyStruct),
210210
# the pep doesn't support unions

0 commit comments

Comments
 (0)
0