The code doesn't have any kind of timeout, I'm guessing your gpg command exited.
gpg = subprocess.Popen(gpg_command, stdin = subprocess.PIPE, stdout = subprocess.PIPE) signed_report = gpg.communicate(mailbody.encode('utf-8'))[0].decode('utf-8') assert gpg.returncode == 0
The code doesn't have any kind of timeout, I'm guessing your gpg command exited.
gpg = subprocess. Popen(gpg_ command, stdin = subprocess.PIPE, stdout = subprocess.PIPE) (mailbody. encode( 'utf-8' ))[0].decode( 'utf-8' )
signed_report = gpg.communicate
assert gpg.returncode == 0