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.
22# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
33#
44# The Universal Permissive License (UPL), Version 1.0
3939
4040from _weakref import ref , getweakrefcount
4141import gc
42+ import sys
4243
4344
4445def test_gc_collect ():
4546 assert isinstance (gc .collect (), (int , type (None )))
4647
4748
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