Skip to content

Commit 596e10f

Browse files
committed
Disable test_weakref.test_(object|method)_dead/test_callback_when_method_dead
1 parent b4adc5a commit 596e10f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1082,13 +1082,15 @@ def test_alive(self):
10821082
self.assertIs(r().__func__, o.some_method.__func__)
10831083
self.assertEqual(r()(), 4)
10841084

1085+
@support.impl_detail("weakref nondeterministic", graalpy=False)
10851086
def test_object_dead(self):
10861087
o = Object(1)
10871088
r = weakref.WeakMethod(o.some_method)
10881089
del o
10891090
gc.collect()
10901091
self.assertIs(r(), None)
10911092

1093+
@support.impl_detail("weakref nondeterministic", graalpy=False)
10921094
def test_method_dead(self):
10931095
C = self._subclass()
10941096
o = C(1)
@@ -1114,6 +1116,7 @@ def cb(arg):
11141116
gc.collect()
11151117
self.assertEqual(calls, [r])
11161118

1119+
@support.impl_detail("weakref nondeterministic", graalpy=False)
11171120
def test_callback_when_method_dead(self):
11181121
# Test callback behaviour when method dies first.
11191122
C = self._subclass()

0 commit comments

Comments
 (0)