]> git.ipfire.org Git - thirdparty/tornado.git/commitdiff
test: Remove some obsolete checks for old python versions
authorBen Darnell <ben@bendarnell.com>
Thu, 11 Jul 2024 19:26:14 +0000 (15:26 -0400)
committerBen Darnell <ben@bendarnell.com>
Thu, 11 Jul 2024 19:26:14 +0000 (15:26 -0400)
tornado/test/gen_test.py
tornado/test/iostream_test.py
tornado/test/netutil_test.py
tornado/test/tcpclient_test.py
tornado/test/util.py

index 1a365dbd72171fc7ce686978e6396f007b62d67f..ec3a6c8e69adb1db7d47be598dc334689fce2ac5 100644 (file)
@@ -572,9 +572,6 @@ class GenCoroutineTest(AsyncTestCase):
         self.finished = True
 
     @skipNotCPython
-    @unittest.skipIf(
-        (3,) < sys.version_info < (3, 6), "asyncio.Future has reference cycles"
-    )
     def test_coroutine_refcounting(self):
         # On CPython, tasks and their arguments should be released immediately
         # without waiting for garbage collection.
index 200b08303f55ba7c8fa14e11df35b4cd4e31b106..09191ecfef5d2ed64eb9e848659d8384a976be62 100644 (file)
@@ -27,7 +27,6 @@ from tornado.testing import (
 from tornado.test.util import (
     skipIfNonUnix,
     refusing_port,
-    skipPypy3V58,
     ignore_deprecation,
     abstract_base_test,
 )
@@ -828,7 +827,6 @@ class TestIOStreamMixin(TestReadWriteMixin):
             client.close()
 
     @skipIfNonUnix
-    @skipPypy3V58
     @gen_test
     def test_inline_read_error(self):
         # An error on an inline read is raised without logging (on the
@@ -862,7 +860,6 @@ class TestIOStreamMixin(TestReadWriteMixin):
             server.close()
             client.close()
 
-    @skipPypy3V58
     @gen_test
     def test_async_read_error_logging(self):
         # Socket errors on asynchronous reads should be logged (but only
index 2334727873bd23f11e06f59bc9ba671501dd3f69..117a9d7f99e34adc958f3b8df96a5952b8bcd5ce 100644 (file)
@@ -1,5 +1,4 @@
 import errno
-import os
 import signal
 import socket
 from subprocess import Popen
index 73b383cbab94f3805c86e641a79b1c032c3cbaee..5638559cecca5effd6190830f2ad224c61c93903 100644 (file)
@@ -14,7 +14,6 @@
 # under the License.
 from contextlib import closing
 import getpass
-import os
 import socket
 import unittest
 
index 2e8bc3e5f1ec7902d185493ecafc3fe0773522b1..ed5fd5d3f6f1834b595ef4289499540f6d2cdb02 100644 (file)
@@ -24,16 +24,6 @@ skipNotCPython = unittest.skipIf(
     platform.python_implementation() != "CPython", "Not CPython implementation"
 )
 
-# Used for tests affected by
-# https://bitbucket.org/pypy/pypy/issues/2616/incomplete-error-handling-in
-# TODO: remove this after pypy3 5.8 is obsolete.
-skipPypy3V58 = unittest.skipIf(
-    platform.python_implementation() == "PyPy"
-    and sys.version_info > (3,)
-    and sys.pypy_version_info < (5, 9),  # type: ignore
-    "pypy3 5.8 has buggy ssl module",
-)
-
 
 def _detect_ipv6():
     if not socket.has_ipv6: