diff --git a/qtconsole/tests/test_jupyter_widget.py b/qtconsole/tests/test_jupyter_widget.py index b32ff1d5..e5cc9f61 100644 --- a/qtconsole/tests/test_jupyter_widget.py +++ b/qtconsole/tests/test_jupyter_widget.py @@ -36,12 +36,15 @@ def test_stylesheet_changed(self): # By default, the background is light. White text is rendered as black self.assertEqual(w._ansi_processor.get_color(15).name(), '#000000') + # Color code 40 + self.assertEqual(w._ansi_processor.get_color(40).name(), '#37D737') + # Change to a dark colorscheme. White text is rendered as white w.syntax_style = 'monokai' self.assertEqual(w._ansi_processor.get_color(15).name(), '#ffffff') - # Color code 40 - self.assertEqual(w._ansi_processor.get_color(40).name(), '#37D737') + # Color code 40 with monokai + self.assertEqual(w._ansi_processor.get_color(40).name(), '#00d700') @pytest.mark.skipif(not sys.platform.startswith('linux'), reason="Works only on Linux")