23 lines
394 B
Python
23 lines
394 B
Python
|
"""Issue #7110"""
|
||
|
import asyncio
|
||
|
|
||
|
import asynctest
|
||
|
|
||
|
|
||
|
teardowns = []
|
||
|
|
||
|
|
||
|
class Test(asynctest.TestCase):
|
||
|
async def tearDown(self):
|
||
|
teardowns.append(None)
|
||
|
|
||
|
async def test_error(self):
|
||
|
await asyncio.sleep(0)
|
||
|
self.fail("failing on purpose")
|
||
|
|
||
|
async def test_ok(self):
|
||
|
await asyncio.sleep(0)
|
||
|
|
||
|
def test_teardowns(self):
|
||
|
assert len(teardowns) == 2
|