]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-40094: mailcap.test() uses waitstatus_to_exitcode() (GH-19287)
authorVictor Stinner <vstinner@python.org>
Thu, 2 Apr 2020 00:00:06 +0000 (02:00 +0200)
committerGitHub <noreply@github.com>
Thu, 2 Apr 2020 00:00:06 +0000 (02:00 +0200)
mailcap.test() now uses os.waitstatus_to_exitcode() to convert
os.system() exit status into an exit code.

Lib/mailcap.py

index bd0fc0981c8c6d7aee1df962b4a30c08e27a7ecd..ae416a8e9fb27314c41c3f5682ded746196ec3c4 100644 (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)