Skip to content

Commit f818cce

Browse files
committed
test_weakref: disable test_weakref_finalizer due to transient failures
1 parent c4c1575 commit f818cce

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

graalpython/com.oracle.graal.python.test/src/tests/test_weakref.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@
4141

4242
import sys
4343

44-
def test_weakref_finalizer():
44+
# TODO: re-enable test_weakref_finalizer once the transient issue associated with it is solved (see GR-27104).
45+
def _weakref_finalizer():
4546
import gc, weakref
4647
class A(): pass
4748
for i in range(2):
@@ -58,7 +59,7 @@ class A(): pass
5859
def cleanup(ref):
5960
global cleaned_up
6061
caller_code = sys._getframe(1).f_code
61-
assert caller_code == test_weakref_finalizer.__code__, "expected: '%s' but was '%s'" % (test_weakref_finalizer.__code__, caller_code)
62+
assert caller_code == _weakref_finalizer.__code__, "expected: '%s' but was '%s'" % (_weakref_finalizer.__code__, caller_code)
6263
cleaned_up = True
6364

6465

0 commit comments

Comments
 (0)