Skip to content

Commit 2fa728a

Browse files
committed
test_sys: mark tests that rely on finalization
1 parent 155ce40 commit 2fa728a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

graalpython/lib-python/3/test/test_sys.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -829,6 +829,7 @@ def test_getallocatedblocks(self):
829829
self.assertIn(c, range(b - 50, b + 50))
830830

831831
@test.support.requires_type_collecting
832+
@support.impl_detail("finalization", graalvm=False)
832833
def test_is_finalizing(self):
833834
self.assertIs(sys.is_finalizing(), False)
834835
# Don't use the atexit module because _Py_Finalizing is only set
@@ -851,6 +852,7 @@ def __del__(self):
851852
self.assertEqual(stdout.rstrip(), b'True')
852853

853854
@test.support.requires_type_collecting
855+
@support.impl_detail("finalization", graalvm=False)
854856
def test_issue20602(self):
855857
# sys.flags and sys.float_info were wiped during shutdown.
856858
code = """if 1:

0 commit comments

Comments
 (0)