[Python-checkins] skip test_test of test_mailcap on VxWorks (GH-23507)

gpshead webhook-mailer at python.org
Sat Nov 28 16:49:52 EST 2020


https://github.com/python/cpython/commit/996a1ef8ae26869a5d0792e0bae615806f50594b
commit: 996a1ef8ae26869a5d0792e0bae615806f50594b
branch: master
author: pxinwr <peixing.xin at windriver.com>
committer: gpshead <greg at krypto.org>
date: 2020-11-28T13:49:47-08:00
summary:

skip test_test of test_mailcap on VxWorks (GH-23507)

files:
A Misc/NEWS.d/next/Tests/2020-11-25-17-00-53.bpo-31904.ue4hd9.rst
M Lib/test/test_mailcap.py

diff --git a/Lib/test/test_mailcap.py b/Lib/test/test_mailcap.py
index 51a0c7da8bb6b..ef9cad498a75c 100644
--- a/Lib/test/test_mailcap.py
+++ b/Lib/test/test_mailcap.py
@@ -4,6 +4,7 @@
 import test.support
 from test.support import os_helper
 import unittest
+import sys
 
 # Location of mailcap file
 MAILCAPFILE = test.support.findfile("mailcap.txt")
@@ -214,6 +215,7 @@ def test_findmatch(self):
         self._run_cases(cases)
 
     @unittest.skipUnless(os.name == "posix", "Requires 'test' command on system")
+    @unittest.skipIf(sys.platform == "vxworks", "'test' command is not supported on VxWorks")
     def test_test(self):
         # findmatch() will automatically check any "test" conditions and skip
         # the entry if the check fails.
diff --git a/Misc/NEWS.d/next/Tests/2020-11-25-17-00-53.bpo-31904.ue4hd9.rst b/Misc/NEWS.d/next/Tests/2020-11-25-17-00-53.bpo-31904.ue4hd9.rst
new file mode 100644
index 0000000000000..910505440b8d6
--- /dev/null
+++ b/Misc/NEWS.d/next/Tests/2020-11-25-17-00-53.bpo-31904.ue4hd9.rst
@@ -0,0 +1 @@
+skip test_test of test_mailcap on VxWorks



More information about the Python-checkins mailing list