#31407: "RuntimeWarning: coroutine 'sleep' was never awaited" observed when
running
tests with Python 3.7 and Python 3.8
---------------------------------------------+------------------------
Reporter: Deep Sukhwani | Owner: nobody
Type: Bug | Status: new
Component: Testing framework | Version: 3.0
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
---------------------------------------------+------------------------
**Steps to reproduce:**
- Use a Python virtualenv with Python 3.7.7 / Python 3.8.2
- Install requirements - from Django root with latest master (of the the
date of this issue): `cd tests && pip install -r requirements/py3.txt`
- Run tests `export DJANGO_TEST_PROCESSES=1; export
OBJC_DISABLE_INITIALIZE_FORK_SAFETY=YES; ./runtests.py`
- This is reproducible in django-docker-box using Python 3.7 and Python
3.8, verified as follows:
`PYTHON_VERSION=3.7 docker-compose run --rm sqlite`
`PYTHON_VERSION=3.8 docker-compose run --rm sqlite`
**Notes:**
- To ensure this is not happening due to parallelization, I had set
`export DJANGO_TEST_PROCESSES=1;` while triggering `./runtests.py`
**Warning text:**
{{{
Exception ignored in: <coroutine object sleep at 0x130ef1320>
Traceback (most recent call last):
File "/Users/ds/.pyenv/versions/3.7.7/lib/python3.7/warnings.py", line
518, in _warn_unawaited_coroutine
warn(msg, category=RuntimeWarning, stacklevel=2, source=coro)
RuntimeWarning: coroutine 'sleep' was never awaited
}}}
**Other Observations:**
- This warning was not observed when running tests with Python 3.6,
verified on macOS and django-docker-box. For `django-docker-box` the tests
were run using: `PYTHON_VERSION=3.6 docker-compose run --rm sqlite`
--
Ticket URL: <https://code.djangoproject.com/ticket/31407>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/056.a98e66d979d35947242fe292e6f03aea%40djangoproject.com.