mirror of
https://github.com/python/cpython.git
synced 2025-07-23 19:25:40 +00:00
[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:
parent
05bd6cbe61
commit
afcf238ed4
4 changed files with 44 additions and 21 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue