Visitar URL original
gh-97588: Failing tests to demonstrate the issue by matthiasgoergens · Pull Request #97589 · python/cpython · GitHub
Skip to content
Closed
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
Prev Previous commit
Next Next commit
Test for alignment boundary
  • Loading branch information
matthiasgoergens committed Sep 30, 2022
commit f41e7cceb3b13eeb0bf3fc3e8e3f5c006dc66b44
10 changes: 10 additions & 0 deletions Lib/test/test_ctypes/test_bitfields.py
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,16 @@ class X(Structure):
a.B = 1
self.assertEqual(1, a.B)

@unittest.skipIf(sys.platform == 'win32', "Doesn't fail on Windows")
@unittest.expectedFailure # gh-97588
def test_mixed_7(self):
class X(Structure):
_fields_ = [
("_", c_uint),
('A', c_uint, 20),
('B', c_ulonglong, 24)]
self.assertEqual(16, sizeof(X))

def test_anon_bitfields(self):
# anonymous bit-fields gave a strange error message
class X(Structure):
Expand Down