summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Lib/ctypes/test/test_numbers.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/Lib/ctypes/test/test_numbers.py b/Lib/ctypes/test/test_numbers.py
index ead360588f..ff2da86ea0 100644
--- a/Lib/ctypes/test/test_numbers.py
+++ b/Lib/ctypes/test/test_numbers.py
@@ -117,7 +117,10 @@ class NumberTestCase(unittest.TestCase):
def test_sizes(self):
for t in signed_types + unsigned_types + float_types + bool_types:
- size = struct.calcsize(t._type_)
+ try:
+ size = struct.calcsize(t._type_)
+ except struct.error:
+ continue
# sizeof of the type...
self.failUnlessEqual(sizeof(t), size)
# and sizeof of an instance