File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 55from textwrap import dedent
66from contextlib import ExitStack
77from unittest import mock
8+ from test .support import force_not_colorized_test_class
89from test .support import import_helper
910
10-
1111code = import_helper .import_module ('code' )
1212
1313
@@ -30,6 +30,7 @@ def mock_sys(self):
3030 del self .sysmod .ps2
3131
3232
33+ @force_not_colorized_test_class
3334class TestInteractiveConsole (unittest .TestCase , MockSys ):
3435 maxDiff = None
3536
@@ -49,9 +50,9 @@ def test_ps2(self):
4950 self .infunc .side_effect = EOFError ('Finished' )
5051 self .console .interact ()
5152 self .assertEqual (self .sysmod .ps2 , '... ' )
52- self .sysmod .ps1 = 'custom2> '
53+ self .sysmod .ps2 = 'custom2> '
5354 self .console .interact ()
54- self .assertEqual (self .sysmod .ps1 , 'custom2> ' )
55+ self .assertEqual (self .sysmod .ps2 , 'custom2> ' )
5556
5657 def test_console_stderr (self ):
5758 self .infunc .side_effect = ["'antioch'" , "" , EOFError ('Finished' )]
You can’t perform that action at this time.
0 commit comments