]> git.ipfire.org Git - thirdparty/tornado.git/commitdiff
test: Skip undecorated coroutine test in py312 3200/head
authorBen Darnell <ben@bendarnell.com>
Sun, 27 Nov 2022 03:29:59 +0000 (22:29 -0500)
committerBen Darnell <ben@bendarnell.com>
Sun, 27 Nov 2022 03:43:56 +0000 (22:43 -0500)
The standard library now has its own check for this, rendering ours redundant
(and breaking our test)

tornado/test/testing_test.py

index d75079bd4a047dbc90669ce610437d8cecf31ad3..ef47e97c2b5586d5f3289804a666c95c59b7dc6e 100644 (file)
@@ -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):