Skip to content

Commit eeb8502

Browse files
committed
[GR-15504] Disable test_gc_count on Native as Native G1 does not support GarbageCollectorMXBean
1 parent 0af97b5 commit eeb8502

File tree

1 file changed

+6
-4
lines changed
  • graalpython/com.oracle.graal.python.test/src/tests

1 file changed

+6
-4
lines changed

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

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
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
@@ -39,12 +39,14 @@
3939

4040
from _weakref import ref, getweakrefcount
4141
import gc
42+
import sys
4243

4344

4445
def 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"

0 commit comments

Comments
 (0)