提交 6f892119 编写于 作者: B Ben Darnell

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.
上级 e80e9441
...@@ -19,6 +19,7 @@ import unittest ...@@ -19,6 +19,7 @@ import unittest
import tornado import tornado
from tornado import web, gen, httpclient from tornado import web, gen, httpclient
from tornado.test.util import skipNotCPython
def find_circular_references(garbage): def find_circular_references(garbage):
...@@ -99,6 +100,8 @@ def assert_no_cycle_garbage(): ...@@ -99,6 +100,8 @@ def assert_no_cycle_garbage():
gc.enable() gc.enable()
# GC behavior is cpython-specific
@skipNotCPython
class CircleRefsTest(unittest.TestCase): class CircleRefsTest(unittest.TestCase):
def test_known_leak(self): def test_known_leak(self):
# Construct a known leak scenario to make sure the test harness works. # Construct a known leak scenario to make sure the test harness works.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册