From e26393e22343825c6735cec1b79974d7cd0688b7 Mon Sep 17 00:00:00 2001 From: Elvis Pranskevichus Date: Fri, 6 Aug 2021 11:46:17 -0700 Subject: [PATCH] Bump minimum required Cython version 0.29.24 is needed to compile properly under Python 3.10 --- setup.py | 2 +- tests/test_cython.py | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index 9d5ed99..07b6758 100644 --- a/setup.py +++ b/setup.py @@ -21,7 +21,7 @@ from setuptools.command.build_ext import build_ext as build_ext from setuptools.command.sdist import sdist as sdist -CYTHON_DEPENDENCY = 'Cython(>=0.29.20,<0.30.0)' +CYTHON_DEPENDENCY = 'Cython(>=0.29.24,<0.30.0)' # Minimal dependencies required to test uvloop. TEST_DEPENDENCIES = [ diff --git a/tests/test_cython.py b/tests/test_cython.py index a1eee78..5292fba 100644 --- a/tests/test_cython.py +++ b/tests/test_cython.py @@ -11,8 +11,11 @@ class TestCythonIntegration(UVTestCase): coro = _test_coroutine_1() + coro_fmt = _format_coroutine(coro) self.assertTrue( - _format_coroutine(coro).startswith('_test_coroutine_1() done')) + coro_fmt.startswith('_test_coroutine_1() done') + or coro_fmt.startswith('_test_coroutine_1() running') + ) self.assertEqual(_test_coroutine_1.__qualname__, '_test_coroutine_1') self.assertEqual(_test_coroutine_1.__name__, '_test_coroutine_1') self.assertTrue(asyncio.iscoroutine(coro))