diff --git a/setup.py b/setup.py index f48b2a8..01073aa 100644 --- a/setup.py +++ b/setup.py @@ -31,10 +31,10 @@ TEST_DEPENDENCIES = [ # aiohttp doesn't support 3.11 yet, # see https://github.com/aio-libs/aiohttp/issues/6600 'aiohttp ; python_version < "3.11"', - 'flake8~=3.9.2', + 'flake8~=5.0', 'psutil', - 'pycodestyle~=2.7.0', - 'pyOpenSSL~=22.0.0', + 'pycodestyle~=2.9.0', + 'pyOpenSSL~=23.0.0', 'mypy>=0.800', CYTHON_DEPENDENCY, ] diff --git a/tests/test_sourcecode.py b/tests/test_sourcecode.py index 8be79e2..370ec6f 100644 --- a/tests/test_sourcecode.py +++ b/tests/test_sourcecode.py @@ -30,9 +30,12 @@ class TestSourceCode(unittest.TestCase): stderr=subprocess.PIPE, cwd=os.path.join(edgepath, subdir)) except subprocess.CalledProcessError as ex: - output = ex.output.decode() + output = ex.stdout.decode() + output += '\n' + output += ex.stderr.decode() raise AssertionError( - 'flake8 validation failed:\n{}'.format(output)) from None + 'flake8 validation failed: {}\n{}'.format(ex, output) + ) from None def test_mypy(self): edgepath = find_uvloop_root() @@ -61,6 +64,9 @@ class TestSourceCode(unittest.TestCase): cwd=edgepath ) except subprocess.CalledProcessError as ex: - output = ex.output.decode() + output = ex.stdout.decode() + output += '\n' + output += ex.stderr.decode() raise AssertionError( - 'mypy validation failed:\n{}'.format(output)) from None + 'mypy validation failed: {}\n{}'.format(ex, output) + ) from None diff --git a/tests/test_tcp.py b/tests/test_tcp.py index 375f330..a595435 100644 --- a/tests/test_tcp.py +++ b/tests/test_tcp.py @@ -2663,6 +2663,10 @@ class _TestSSL(tb.SSLTestCase): self.loop.run_until_complete(client(srv.addr)) def test_remote_shutdown_receives_trailing_data(self): + if sys.platform == 'linux' and sys.version_info < (3, 11): + # TODO: started hanging and needs to be diagnosed. + raise unittest.SkipTest() + CHUNK = 1024 * 16 SIZE = 8 count = 0