The standard library now has its own check for this, rendering ours redundant
(and breaking our test)
import gc
import os
import platform
+import sys
import traceback
import unittest
import warnings
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):