mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Keep test/lsp.py working when not on a tty
This commit is contained in:
parent
9a207ad27c
commit
acaa019785
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user