Skip to content

Commit 4e266c1

Browse files
committed
test_memoryio: skip SIGSEG tests
1 parent 638d9b0 commit 4e266c1

File tree

4 files changed

+8
-6
lines changed

4 files changed

+8
-6
lines changed

graalpython/lib-python/3/test/test_memoryio.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -361,6 +361,7 @@ def test_instance_dict_leak(self):
361361
memio = self.ioclass()
362362
memio.foo = 1
363363

364+
@unittest.skipIfGraalPython(reason="not yet supported, causes SEGFAULT")
364365
def test_pickling(self):
365366
buf = self.buftype("1234567890")
366367
memio = self.ioclass(buf)
@@ -445,6 +446,7 @@ def test_read1(self):
445446
self.assertRaises(TypeError, memio.read1)
446447
self.assertEqual(memio.read(), buf)
447448

449+
@unittest.skipIfGraalPython(reason="not yet supported, causes SEGFAULT")
448450
def test_readinto(self):
449451
buf = self.buftype("1234567890")
450452
memio = self.ioclass(buf)

graalpython/lib-python/3/test/test_operator.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -511,7 +511,7 @@ def copy(self, obj, proto):
511511
with support.swap_item(sys.modules, 'operator', self.module2):
512512
return pickle.loads(pickled)
513513

514-
@unittest.skipIfGraalPython()
514+
@unittest.skipIfGraalPython(reason="not yet supported, causes SEGFAULT")
515515
def test_attrgetter(self):
516516
attrgetter = self.module.attrgetter
517517
class A:
@@ -540,7 +540,7 @@ class A:
540540
self.assertEqual(repr(f2), repr(f))
541541
self.assertEqual(f2(a), f(a))
542542

543-
@unittest.skipIfGraalPython()
543+
@unittest.skipIfGraalPython(reason="not yet supported, causes SEGFAULT")
544544
def test_itemgetter(self):
545545
itemgetter = self.module.itemgetter
546546
a = 'ABCDE'
@@ -556,7 +556,7 @@ def test_itemgetter(self):
556556
self.assertEqual(repr(f2), repr(f))
557557
self.assertEqual(f2(a), f(a))
558558

559-
@unittest.skipIfGraalPython()
559+
@unittest.skipIfGraalPython(reason="not yet supported, causes SEGFAULT")
560560
def test_methodcaller(self):
561561
methodcaller = self.module.methodcaller
562562
class A:

graalpython/lib-python/3/test/test_range.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ def test_repr(self):
349349
self.assertEqual(repr(range(1, 2)), 'range(1, 2)')
350350
self.assertEqual(repr(range(1, 2, 3)), 'range(1, 2, 3)')
351351

352-
@unittest.skipIfGraalPython()
352+
@unittest.skipIfGraalPython(reason="not yet supported, causes SEGFAULT")
353353
def test_pickling(self):
354354
testcases = [(13,), (0, 11), (-22, 10), (20, 3, -1),
355355
(13, 21, 3), (-2, 2, 2), (2**65, 2**65+2)]

graalpython/lib-python/3/unittest/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,5 +79,5 @@ def load_tests(loader, tests, pattern):
7979
return loader.discover(start_dir=this_dir, pattern=pattern)
8080

8181

82-
def skipIfGraalPython():
83-
return skipIf(sys.implementation.name == 'graalpython', 'Functionality not yet supported')
82+
def skipIfGraalPython(reason="Functionality not yet supported"):
83+
return skipIf(sys.implementation.name == 'graalpython', reason)

0 commit comments

Comments
 (0)