Lines Matching defs:sys
5 import sys
57 @unittest.skipIf(sys.platform == "cygwin",
64 print(f'TERM={term}', file=sys.stderr, flush=True)
67 stdout_fd = sys.__stdout__.fileno()
72 self.output = sys.__stdout__
73 stdout_fd = sys.__stdout__.fileno()
74 if not sys.__stdout__.isatty():
84 if sys.__stderr__.isatty():
86 tmp = sys.__stderr__
87 self.output = sys.__stderr__
108 sys.stderr.flush()
109 sys.stdout.flush()
233 if hasattr(stdscr, 'syncok') and not sys.platform.startswith("sunos"):
802 curses.typeahead(sys.__stdin__.fileno())
883 print(f'COLORS = {curses.COLORS}', file=sys.stderr)
884 print(f'COLOR_PAIRS = {curses.COLOR_PAIRS}', file=sys.stderr)
1037 nrefs = sys.getrefcount(obj)
1042 self.assertEqual(sys.getrefcount(obj), nrefs,
1250 for i in (-2, -1, 256, sys.maxunicode, sys.maxunicode+1):