From 6f8921191b4b214a752739465cabfff8165c474a Mon Sep 17 00:00:00 2001 From: Ben Darnell Date: Tue, 22 Aug 2023 09:28:13 -0400 Subject: [PATCH] test: Skip circlerefs test on pypy Pypy doesn't have the same refcount fast-path as cpython so the gc behavior is different and this test is irrelevant. --- tornado/test/circlerefs_test.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tornado/test/circlerefs_test.py b/tornado/test/circlerefs_test.py index 49b53f96..5c71858f 100644 --- a/tornado/test/circlerefs_test.py +++ b/tornado/test/circlerefs_test.py @@ -19,6 +19,7 @@ import unittest import tornado from tornado import web, gen, httpclient +from tornado.test.util import skipNotCPython def find_circular_references(garbage): @@ -99,6 +100,8 @@ def assert_no_cycle_garbage(): gc.enable() +# GC behavior is cpython-specific +@skipNotCPython class CircleRefsTest(unittest.TestCase): def test_known_leak(self): # Construct a known leak scenario to make sure the test harness works. -- GitLab