Skip to content

Commit

Permalink
Bump minimum required Cython version (#431)
Browse files Browse the repository at this point in the history
0.29.24 is needed to compile properly under Python 3.10
  • Loading branch information
elprans authored Aug 6, 2021
1 parent 4b803b1 commit 6cb2ed0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
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 = [
Expand Down
5 changes: 4 additions & 1 deletion tests/test_cython.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,11 @@ def test_cython_coro_is_coroutine(self):

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))
Expand Down

0 comments on commit 6cb2ed0

Please sign in to comment.