From: Ben Darnell Date: Sun, 27 Nov 2022 03:29:59 +0000 (-0500) Subject: test: Skip undecorated coroutine test in py312 X-Git-Tag: v6.3.0b1~22^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=802196bddbc83ed2723f819decc91f6628b65f2c;p=thirdparty%2Ftornado.git test: Skip undecorated coroutine test in py312 The standard library now has its own check for this, rendering ours redundant (and breaking our test) --- diff --git a/tornado/test/testing_test.py b/tornado/test/testing_test.py index d75079bd4..ef47e97c2 100644 --- a/tornado/test/testing_test.py +++ b/tornado/test/testing_test.py @@ -10,6 +10,7 @@ import inspect import gc import os import platform +import sys import traceback import unittest import warnings @@ -134,6 +135,9 @@ class AsyncTestCaseWrapperTest(unittest.TestCase): platform.python_implementation() == "PyPy", "pypy destructor warnings cannot be silenced", ) + @unittest.skipIf( + sys.version_info >= (3, 12), "py312 has its own check for test case returns" + ) def test_undecorated_coroutine(self): class Test(AsyncTestCase): async def test_coro(self):