From f36e18b2dba56411e19098ab8622d5979111af23 Mon Sep 17 00:00:00 2001 From: jsbautista <42411448+jsbautista@users.noreply.github.com> Date: Mon, 15 Jul 2024 12:22:26 -0500 Subject: [PATCH] Update qtconsole/tests/test_ansi_code_processor.py MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Daniel Althviz Moré <16781833+dalthviz@users.noreply.github.com> --- qtconsole/tests/test_ansi_code_processor.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/qtconsole/tests/test_ansi_code_processor.py b/qtconsole/tests/test_ansi_code_processor.py index 3fd4b4c7..8863db18 100644 --- a/qtconsole/tests/test_ansi_code_processor.py +++ b/qtconsole/tests/test_ansi_code_processor.py @@ -52,9 +52,10 @@ def test_colors(self): self.assertEqual(self.processor.foreground_color, None) elif i == 3: foreground_color = self.processor.foreground_color - self.assertEqual(self.qt_processor.get_color(foreground_color).name(), '#ffd700') self.assertEqual(substring, 'Yellow') - self.assertEqual(self.processor.foreground_color, 3) + self.assertEqual(foreground_color, 3) + self.assertEqual(self.qt_processor.get_color(foreground_color).name(), '#ffd700') + else: self.fail('Too many substrings.')