bpo-40094: mailcap.test() uses waitstatus_to_exitcode() (GH-19287)

mailcap.test() now uses os.waitstatus_to_exitcode() to convert
os.system() exit status into an exit code.
This commit is contained in:
Victor Stinner 2020-04-02 02:00:06 +02:00 committed by GitHub
parent 168660b547
commit d57cf55736
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -251,6 +251,7 @@ def test():
else:
print("Executing:", command)
sts = os.system(command)
sts = os.waitstatus_to_exitcode(sts)
if sts:
print("Exit status:", sts)