From: Ben Darnell Date: Tue, 22 Aug 2023 13:28:13 +0000 (-0400) Subject: test: Skip circlerefs test on pypy X-Git-Tag: v6.4.0b1~12^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F3315%2Fhead;p=thirdparty%2Ftornado.git 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. --- diff --git a/tornado/test/circlerefs_test.py b/tornado/test/circlerefs_test.py index 49b53f96f..5c71858ff 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.