Message248901
Would `pty` even work on CI where the terminal itself might not be a TTY ?
>>> subprocess.Popen(['bash', '-c', '''./python.exe -c "import sys; print(sys.stdin.isatty())"'''], stdin=subprocess.PIPE, stderr=subprocess.STDOUT)
False
Otherwise, I can also (try to) implement a debug flag "--FakeTTYYesIMReallySure" that make `.isatty()` lie. |
|
Date |
User |
Action |
Args |
2015-08-20 17:21:11 | mbussonn | set | recipients:
+ mbussonn, terry.reedy, ncoghlan, ezio.melotti, njs, takluyver, martin.panter, Jim.Jewett, serhiy.storchaka, The Compiler |
2015-08-20 17:21:11 | mbussonn | set | messageid: <1440091271.82.0.676859580884.issue24294@psf.upfronthosting.co.za> |
2015-08-20 17:21:11 | mbussonn | link | issue24294 messages |
2015-08-20 17:21:11 | mbussonn | create | |
|