]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
skip test_test of test_mailcap on VxWorks (GH-23507)
authorpxinwr <peixing.xin@windriver.com>
Sat, 28 Nov 2020 21:49:47 +0000 (05:49 +0800)
committerGitHub <noreply@github.com>
Sat, 28 Nov 2020 21:49:47 +0000 (13:49 -0800)
Lib/test/test_mailcap.py
Misc/NEWS.d/next/Tests/2020-11-25-17-00-53.bpo-31904.ue4hd9.rst [new file with mode: 0644]

index 51a0c7da8bb6bdfadbcee0a945800977f57dcb6b..ef9cad498a75c2620d806362f8048458bd48c310 100644 (file)
@@ -4,6 +4,7 @@ import copy
 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 @@ class FindmatchTest(unittest.TestCase):
         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 (file)
index 0000000..9105054
--- /dev/null
@@ -0,0 +1 @@
+skip test_test of test_mailcap on VxWorks