File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
graalpython/com.oracle.graal.python.test/src/tests Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change 1
- # Copyright (c) 2018, 2024 , Oracle and/or its affiliates. All rights reserved.
1
+ # Copyright (c) 2018, 2025 , Oracle and/or its affiliates. All rights reserved.
2
2
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3
3
#
4
4
# The Universal Permissive License (UPL), Version 1.0
39
39
40
40
from _weakref import ref , getweakrefcount
41
41
import gc
42
+ import sys
42
43
43
44
44
45
def test_gc_collect ():
45
46
assert isinstance (gc .collect (), (int , type (None )))
46
47
47
48
48
- def test_gc_count ():
49
- c0 , c1 , c2 = gc .get_count ()
50
- assert c0 + c1 + c2 > 0 , "we definitely had something collected"
49
+ if not (sys .implementation .name == "graalpy" and __graalpython__ .is_native ): # GR-15504
50
+ def test_gc_count ():
51
+ c0 , c1 , c2 = gc .get_count ()
52
+ assert c0 + c1 + c2 > 0 , "we definitely had something collected"
You can’t perform that action at this time.
0 commit comments