➜

This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

作者 haizaar
收信人 haizaar
日期 2019-06-27.06:59:50
SpamBayes Score -1.0
Marked as misclassified 是
Message-id <1561618790.88.0.611701645761.issue37424@roundup.psfhosted.org>
In-reply-to
内容
Consider the following:

subprocess.run('sleep 10', shell=True, timeout=.1, capture_output=True)

It should raise after 0.1 seconds, but it does not - it waits 10 seconds till sleep finishes and only then raises "subprocess.TimeoutExpired: Command 'sleep 10' timed out after 0.1 seconds"

Removing 'capture_output=True' or converting command string to list (and removing shell=True) makes it work.

I'm using Python 3.7.3 on Ubuntu 16.04. Reproduces on official docker Python 3.7.3 image alpine3.8.
历史
日期 用户 动作 参数
2019-06-27 06:59:50haizaar修改recipients: + haizaar
2019-06-27 06:59:50haizaar修改messageid: <1561618790.88.0.611701645761.issue37424@roundup.psfhosted.org>
2019-06-27 06:59:50haizaar链接issue37424 messages
2019-06-27 06:59:50haizaar创建