]> git.ipfire.org Git - thirdparty/tornado.git/commitdiff
test: Skip circlerefs test on pypy 3315/head
authorBen Darnell <ben@bendarnell.com>
Tue, 22 Aug 2023 13:28:13 +0000 (09:28 -0400)
committerBen Darnell <ben@bendarnell.com>
Tue, 22 Aug 2023 13:33:16 +0000 (09:33 -0400)
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

index 49b53f96f6f799888c9b9270eb489edcf88f9dd7..5c71858ff72d1ee57588903174d5854e25e7f480 100644 (file)
@@ -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.