mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-05-18 16:01:00 +02:00
test: drop check for Windows < 10
This commit is contained in:
parent
35b898c47f
commit
bf47448f15
@ -51,8 +51,7 @@ except UnicodeDecodeError:
|
||||
CROSS = "x "
|
||||
CIRCLE = "o "
|
||||
|
||||
if platform.system() != 'Windows' or sys.getwindowsversion() >= (10, 0, 14393): #type:ignore
|
||||
if platform.system() == 'Windows':
|
||||
if platform.system() == 'Windows':
|
||||
import ctypes
|
||||
kernel32 = ctypes.windll.kernel32 # type: ignore
|
||||
ENABLE_VIRTUAL_TERMINAL_PROCESSING = 4
|
||||
@ -68,6 +67,7 @@ if platform.system() != 'Windows' or sys.getwindowsversion() >= (10, 0, 14393):
|
||||
stderr_mode = ctypes.c_int32()
|
||||
kernel32.GetConsoleMode(stderr, ctypes.byref(stderr_mode))
|
||||
kernel32.SetConsoleMode(stderr, stderr_mode.value | ENABLE_VIRTUAL_TERMINAL_PROCESSING)
|
||||
else:
|
||||
# primitive formatting on supported
|
||||
# terminal via ANSI escape sequences:
|
||||
DEFAULT = ('\033[0m', '\033[0m')
|
||||
|
Loading…
x
Reference in New Issue
Block a user