mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-04-29 14:59:39 -04:00
test: drop check for Windows < 10
This commit is contained in:
parent
35b898c47f
commit
bf47448f15
1 changed files with 17 additions and 17 deletions
|
@ -51,7 +51,6 @@ except UnicodeDecodeError:
|
||||||
CROSS = "x "
|
CROSS = "x "
|
||||||
CIRCLE = "o "
|
CIRCLE = "o "
|
||||||
|
|
||||||
if platform.system() != 'Windows' or sys.getwindowsversion() >= (10, 0, 14393): #type:ignore
|
|
||||||
if platform.system() == 'Windows':
|
if platform.system() == 'Windows':
|
||||||
import ctypes
|
import ctypes
|
||||||
kernel32 = ctypes.windll.kernel32 # type: ignore
|
kernel32 = ctypes.windll.kernel32 # type: ignore
|
||||||
|
@ -68,6 +67,7 @@ if platform.system() != 'Windows' or sys.getwindowsversion() >= (10, 0, 14393):
|
||||||
stderr_mode = ctypes.c_int32()
|
stderr_mode = ctypes.c_int32()
|
||||||
kernel32.GetConsoleMode(stderr, ctypes.byref(stderr_mode))
|
kernel32.GetConsoleMode(stderr, ctypes.byref(stderr_mode))
|
||||||
kernel32.SetConsoleMode(stderr, stderr_mode.value | ENABLE_VIRTUAL_TERMINAL_PROCESSING)
|
kernel32.SetConsoleMode(stderr, stderr_mode.value | ENABLE_VIRTUAL_TERMINAL_PROCESSING)
|
||||||
|
else:
|
||||||
# primitive formatting on supported
|
# primitive formatting on supported
|
||||||
# terminal via ANSI escape sequences:
|
# terminal via ANSI escape sequences:
|
||||||
DEFAULT = ('\033[0m', '\033[0m')
|
DEFAULT = ('\033[0m', '\033[0m')
|
||||||
|
|
Loading…
Add table
Reference in a new issue