mirror of
https://github.com/python/cpython.git
synced 2025-12-08 06:10:17 +00:00
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 6ca78affc8)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
This commit is contained in:
parent
0c0bd78ccf
commit
95948169d7
10 changed files with 102 additions and 63 deletions
|
|
@ -987,10 +987,10 @@ def test_eof_feed_when_closing_writer(self):
|
|||
wr.close()
|
||||
f = wr.wait_closed()
|
||||
self.loop.run_until_complete(f)
|
||||
assert rd.at_eof()
|
||||
self.assertTrue(rd.at_eof())
|
||||
f = rd.read()
|
||||
data = self.loop.run_until_complete(f)
|
||||
assert data == b''
|
||||
self.assertEqual(data, b'')
|
||||
|
||||
self.assertEqual(messages, [])
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue