Skip to content

Commit

Permalink
test: Skip circlerefs test on pypy
Browse files Browse the repository at this point in the history
Pypy doesn't have the same refcount fast-path as cpython so the
gc behavior is different and this test is irrelevant.
  • Loading branch information
bdarnell committed Aug 22, 2023
1 parent e80e944 commit 94517ea
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tornado/test/circlerefs_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@

import tornado
from tornado import web, gen, httpclient
from tornado.test.util import skipNotCPython


def find_circular_references(garbage):
Expand Down Expand Up @@ -98,7 +99,8 @@ def assert_no_cycle_garbage():
gc.set_debug(0)
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.
Expand Down

0 comments on commit 94517ea

Please sign in to comment.