문제

I am trying to use winpexpect to have an interactive subprocesses in Python. I am completely baffled. When I run a unit test, winspawn executes normally along with all the expects. When I run my program as a whole, winspawn inexplicably blocks forever. How can this be? As far as I know, winspawn is non-blocking.

도움이 되었습니까?

해결책

So, I found out that the string I was passing to winpexpect was Unicode in one case and str in another case. It seems that winpexpect will block at winspawn if the string you pass in is unicode.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top