diff --git a/graalpython/com.oracle.graal.python.test/src/tests/test_weakref.py b/graalpython/com.oracle.graal.python.test/src/tests/test_weakref.py index e47a8975d4..5a4114fbd7 100644 --- a/graalpython/com.oracle.graal.python.test/src/tests/test_weakref.py +++ b/graalpython/com.oracle.graal.python.test/src/tests/test_weakref.py @@ -1,4 +1,4 @@ -# Copyright (c) 2018, 2025, Oracle and/or its affiliates. All rights reserved. +# Copyright (c) 2018, 2026, Oracle and/or its affiliates. All rights reserved. # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. # # The Universal Permissive License (UPL), Version 1.0 @@ -92,7 +92,7 @@ def do_hash(item): # try hard to collect the two objects but avoid infinite loop i = 0 - while not (r1() is None and r3() is None) and i < 10000: + while not (r1() is None and r3() is None) and i < 100: gc.collect() i += 1 @@ -293,4 +293,4 @@ def __call__(self): a = A(42) proxy = weakref.proxy(a) assert callable(proxy) is True - assert proxy() == 42 \ No newline at end of file + assert proxy() == 42