mirror of
https://github.com/python/cpython.git
synced 2025-11-01 14:11:41 +00:00
gh-127221: Add colour to unittest output (#127223)
Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru>
This commit is contained in:
parent
d958d9f4a1
commit
23f2e8f13c
15 changed files with 136 additions and 60 deletions
|
|
@ -2,6 +2,7 @@
|
|||
import contextvars
|
||||
import unittest
|
||||
from test import support
|
||||
from test.support import force_not_colorized
|
||||
|
||||
support.requires_working_socket(module=True)
|
||||
|
||||
|
|
@ -252,6 +253,7 @@ async def on_cleanup(self):
|
|||
test.doCleanups()
|
||||
self.assertEqual(events, ['asyncSetUp', 'test', 'asyncTearDown', 'cleanup'])
|
||||
|
||||
@force_not_colorized
|
||||
def test_exception_in_tear_clean_up(self):
|
||||
class Test(unittest.IsolatedAsyncioTestCase):
|
||||
async def asyncSetUp(self):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue