[3.13] gh-128595: Add test class helper to force no terminal colour (GH-128687) (#128778)

Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
This commit is contained in:
Hugo van Kemenade 2025-01-13 13:57:44 +02:00 committed by GitHub
parent 05bd6cbe61
commit afcf238ed4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 44 additions and 21 deletions

View file

@ -5,9 +5,9 @@ import unittest
from textwrap import dedent
from contextlib import ExitStack
from unittest import mock
from test.support import force_not_colorized_test_class
from test.support import import_helper
code = import_helper.import_module('code')
@ -30,6 +30,7 @@ class MockSys:
del self.sysmod.ps2
@force_not_colorized_test_class
class TestInteractiveConsole(unittest.TestCase, MockSys):
maxDiff = None