Python 3.8 compatibility
See original GitHub issueUsing python3.8, with -Werror
>>> from freezegun import freeze_time
>>> @freeze_time()
... async def foo():
... pass
...
Traceback (most recent call last):
File "<stdin>", line 2, in <module>
File "[...]/.tox/py38-std-sha256/lib/python3.8/site-packages/freezegun/api.py", line 500, in __call__
return self.decorate_coroutine(func)
File "[...]/.tox/py38-std-sha256/lib/python3.8/site-packages/freezegun/api.py", line 689, in decorate_coroutine
return wrap_coroutine(self, coroutine)
File "[...]/.tox/py38-std-sha256/lib/python3.8/site-packages/freezegun/_async.py", line 9, in wrap_coroutine
def wrapper(*args, **kwargs):
File "/opt/python/3.8-dev/lib/python3.8/asyncio/coroutines.py", line 111, in coroutine
warnings.warn('"@coroutine" decorator is deprecated since Python 3.8, use "async def" instead',
DeprecationWarning: "@coroutine" decorator is deprecated since Python 3.8, use "async def" instead
According to the release notes: https://docs.python.org/3.8/whatsnew/changelog.html#changelog
bpo-36921: Deprecate
@coroutine
for sake of async def.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:2
- Comments:5 (5 by maintainers)
Top Results From Across the Web
Python 3.8 support table for most popular Python packages
Python 3.8 is a currently supported version of Python . This site shows Python 3.8 support for the 360 most downloaded packages on...
Read more >What's New In Python 3.8 — Python 3.11.1 documentation
Release builds and debug builds are now ABI compatible: defining the Py_DEBUG macro no longer implies the Py_TRACE_REFS macro, which introduces the only...
Read more >Python Release Python 3.8.10
Major new features of the 3.8 series, compared to 3.7 ; PEP 572, Assignment expressions ; PEP 570, Positional-only arguments ; PEP 587,...
Read more >Python Release Python 3.8.0
For Python 3.8.0, we provide one installer: 64-bit-only that works on macOS 10.9 (Mavericks) and later systems. Please read the "Important ...
Read more >PEP 606 – Python Compatibility Version
Python 3.9 with sys.set_python_compat_version((3, 8)) is not fully compatible with Python 3.8: the compatibility is only partial. Security ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
One note is that the freezegun supports 3.4 which reached EoL.
async def
syntax is supported only from 3.5 and aboveRelated to https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=944026