MCPcopy Index your code
hub / github.com/python/cpython / test_start_color

Method test_start_color

Lib/test/test_curses.py:890–896  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

888 self.assertIsInstance(curses.can_change_color(), bool)
889
890 def test_start_color(self):
891 if not curses.has_colors():
892 self.skipTest('requires colors support')
893 curses.start_color()
894 if verbose:
895 print(f'COLORS = {curses.COLORS}', file=sys.stderr)
896 print(f'COLOR_PAIRS = {curses.COLOR_PAIRS}', file=sys.stderr)
897
898 @requires_colors
899 def test_color_content(self):

Callers

nothing calls this directly

Calls 2

skipTestMethod · 0.80
has_colorsMethod · 0.45

Tested by

no test coverage detected