We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 327648f commit 44549b9Copy full SHA for 44549b9
1 file changed
Lib/test/test_pyrepl/test_fancycompleter.py
@@ -1,6 +1,7 @@
1
import unittest
2
import sys
3
4
+from _colorize import ANSIColors
5
import _pyrepl.readline
6
from _pyrepl.fancycompleter import Completer, DefaultConfig, commonprefix
7
@@ -70,8 +71,8 @@ def test_complete_attribute_colored(self):
70
71
matches = compl.attr_matches('a.__')
72
self.assertGreater(len(matches), 2)
73
expected_color = compl.config.color_by_type.get(type(compl.__class__))
- self.assertEqual(expected_color, '35;01')
74
- expected_part = Color.set(expected_color, '__class__')
+ self.assertEqual(expected_color, ANSIColors.BOLD_MAGENTA)
75
+ expected_part = f'{expected_color}__class__{ANSIColors.RESET}'
76
for match in matches:
77
if expected_part in match:
78
break
0 commit comments