gh-127221: Add colour to unittest output (#127223)

Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru>
This commit is contained in:
Hugo van Kemenade 2024-12-05 21:10:46 +02:00 committed by GitHub
parent d958d9f4a1
commit 23f2e8f13c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
15 changed files with 136 additions and 60 deletions

View file

@ -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):