blob: 45e3c7581474a9fcc24d97d759c7bff248277c50 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
diff --git a/test/lsp.py b/test/lsp.py
index 669951ca4..11007ae82 100755
--- a/test/lsp.py
+++ b/test/lsp.py
@@ -28,7 +28,8 @@ else:
import tty
# Turn off user input buffering so we get the input immediately,
# not only after a line break
- tty.setcbreak(sys.stdin.fileno())
+ if os.isatty(sys.stdin.fileno()):
+ tty.setcbreak(sys.stdin.fileno())
# Type for the pure test name without .sol suffix or sub directory
|