@@ -30,6 +30,7 @@ def bigendian_to_native(value):
30
30
return string_reverse (value )
31
31
32
32
class StructTest (unittest .TestCase ):
33
+ @unittest .skipIfGraalPython (reason = "not yet supported, causes SEGFAULT" )
33
34
def test_isbigendian (self ):
34
35
self .assertEqual ((struct .pack ('=i' , 1 )[0 ] == 0 ), ISBIGENDIAN )
35
36
@@ -54,6 +55,7 @@ def test_consistence(self):
54
55
self .assertRaises (struct .error , struct .unpack , 'iii' , s )
55
56
self .assertRaises (struct .error , struct .unpack , 'i' , s )
56
57
58
+ @unittest .skipIfGraalPython (reason = "not yet supported, causes SEGFAULT" )
57
59
def test_transitiveness (self ):
58
60
c = b'a'
59
61
b = 1
@@ -78,6 +80,7 @@ def test_transitiveness(self):
78
80
self .assertEqual (int (100 * dp ), int (100 * d ))
79
81
self .assertEqual (tp , t )
80
82
83
+ @unittest .skipIfGraalPython (reason = "not yet supported, causes SEGFAULT" )
81
84
def test_new_features (self ):
82
85
# Test some of the new features in detail
83
86
# (format, argument, big-endian result, little-endian result, asymmetric)
@@ -332,6 +335,7 @@ def assertStructError(func, *args, **kwargs):
332
335
assertStructError (struct .pack , format , 0 )
333
336
assertStructError (struct .unpack , format , b"" )
334
337
338
+ @unittest .skipIfGraalPython (reason = "not yet supported, causes SEGFAULT" )
335
339
def test_p_code (self ):
336
340
# Test p ("Pascal string") code.
337
341
for code , input , expected , expectedback in [
@@ -348,6 +352,7 @@ def test_p_code(self):
348
352
(got ,) = struct .unpack (code , got )
349
353
self .assertEqual (got , expectedback )
350
354
355
+ @unittest .skipIfGraalPython (reason = "not yet supported, causes SEGFAULT" )
351
356
def test_705836 (self ):
352
357
# SF bug 705836. "<f" and ">f" had a severe rounding bug, where a carry
353
358
# from the low-order discarded bits could propagate into the exponent
@@ -381,6 +386,7 @@ def test_705836(self):
381
386
big = math .ldexp (big , 127 - 24 )
382
387
self .assertRaises (OverflowError , struct .pack , ">f" , big )
383
388
389
+ @unittest .skipIfGraalPython (reason = "not yet supported, causes SEGFAULT" )
384
390
def test_1530559 (self ):
385
391
for code , byteorder in iter_integer_formats ():
386
392
format = byteorder + code
@@ -475,6 +481,7 @@ def test_unpack_with_buffer(self):
475
481
value , = struct .unpack ('>I' , data )
476
482
self .assertEqual (value , 0x12345678 )
477
483
484
+ @unittest .skipIfGraalPython (reason = "not yet supported, causes SEGFAULT" )
478
485
def test_bool (self ):
479
486
class ExplodingBool (object ):
480
487
def __bool__ (self ):
0 commit comments