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.')