Changeset View
Changeset View
Standalone View
Standalone View
test/functional/test_runner.py
Show All 39 Lines | try: | ||||
TICK = "✓ " | TICK = "✓ " | ||||
CROSS = "✖ " | CROSS = "✖ " | ||||
CIRCLE = "○ " | CIRCLE = "○ " | ||||
except UnicodeDecodeError: | except UnicodeDecodeError: | ||||
TICK = "P " | TICK = "P " | ||||
CROSS = "x " | CROSS = "x " | ||||
CIRCLE = "o " | CIRCLE = "o " | ||||
if os.name != 'nt' or sys.getwindowsversion() >= (10, 0, 14393): | if os.name != 'nt' or sys.getwindowsversion() >= (10, 0, 14393): # type: ignore | ||||
if os.name == 'nt': | if os.name == 'nt': | ||||
import ctypes | import ctypes | ||||
kernel32 = ctypes.windll.kernel32 # type: ignore | kernel32 = ctypes.windll.kernel32 # type: ignore | ||||
ENABLE_VIRTUAL_TERMINAL_PROCESSING = 4 | ENABLE_VIRTUAL_TERMINAL_PROCESSING = 4 | ||||
STD_OUTPUT_HANDLE = -11 | STD_OUTPUT_HANDLE = -11 | ||||
STD_ERROR_HANDLE = -12 | STD_ERROR_HANDLE = -12 | ||||
# Enable ascii color control to stdout | # Enable ascii color control to stdout | ||||
stdout = kernel32.GetStdHandle(STD_OUTPUT_HANDLE) | stdout = kernel32.GetStdHandle(STD_OUTPUT_HANDLE) | ||||
▲ Show 20 Lines • Show All 843 Lines • Show Last 20 Lines |