Author haizaar
Recipients haizaar
Date 2019-06-27.06:59:50
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
Consider the following:'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.
Date User Action Args
2019-06-27 06:59:50haizaarsetrecipients: + haizaar
2019-06-27 06:59:50haizaarsetmessageid: <>
2019-06-27 06:59:50haizaarlinkissue37424 messages
2019-06-27 06:59:50haizaarcreate