mirror of
https://github.com/python/cpython.git
synced 2025-08-30 13:38:43 +00:00
bpo-23819: Get rid of assert statements in test_asyncio (GH-30212)
To keep checks even if run tests with optimized Python. Either use special assertion methods like assertEqual() or raise an AssertionError explicitly.
This commit is contained in:
parent
7c5c3f7254
commit
6ca78affc8
10 changed files with 102 additions and 63 deletions
|
@ -34,7 +34,8 @@ def EXITCODE(exitcode):
|
|||
|
||||
|
||||
def SIGNAL(signum):
|
||||
assert 1 <= signum <= 68
|
||||
if not 1 <= signum <= 68:
|
||||
raise AssertionError(f'invalid signum {signum}')
|
||||
return 32768 - signum
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue