]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-23819: Get rid of assert statements in test_asyncio (GH-30212) (GH-30213)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 20 Dec 2021 12:50:45 +0000 (04:50 -0800)
committerGitHub <noreply@github.com>
Mon, 20 Dec 2021 12:50:45 +0000 (14:50 +0200)
commit95948169d75bed3936284ea2225e83e07ec5fe20
tree269af5d88a76c674e7768f29644b0f57ca9f46da
parent0c0bd78ccf8e1eb1d8ecfce423daf2a2f8ca6d3b
bpo-23819: Get rid of assert statements in test_asyncio (GH-30212) (GH-30213)

To keep checks even if run tests with optimized Python.

Either use special assertion methods like assertEqual() or
raise an AssertionError explicitly.
(cherry picked from commit 6ca78affc8023bc5023189d64d8050857662042a)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Lib/test/test_asyncio/test_base_events.py
Lib/test/test_asyncio/test_events.py
Lib/test/test_asyncio/test_futures.py
Lib/test/test_asyncio/test_sendfile.py
Lib/test/test_asyncio/test_sock_lowlevel.py
Lib/test/test_asyncio/test_sslproto.py
Lib/test/test_asyncio/test_streams.py
Lib/test/test_asyncio/test_tasks.py
Lib/test/test_asyncio/test_unix_events.py
Lib/test/test_asyncio/utils.py