summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpxinwr <peixing.xin@windriver.com>2020-11-28 21:49:47 (GMT)
committerGitHub <noreply@github.com>2020-11-28 21:49:47 (GMT)
commit996a1ef8ae26869a5d0792e0bae615806f50594b (patch)
tree5e6ac78f8224a158bdbf09a0474e8fe49e2db362
parent64c8f81047e393d3c54b15a6f9d800e9b26a816c (diff)
downloadcpython-996a1ef8ae26869a5d0792e0bae615806f50594b.zip
cpython-996a1ef8ae26869a5d0792e0bae615806f50594b.tar.gz
cpython-996a1ef8ae26869a5d0792e0bae615806f50594b.tar.bz2
skip test_test of test_mailcap on VxWorks (GH-23507)
-rw-r--r--Lib/test/test_mailcap.py2
-rw-r--r--Misc/NEWS.d/next/Tests/2020-11-25-17-00-53.bpo-31904.ue4hd9.rst1
2 files changed, 3 insertions, 0 deletions
diff --git a/Lib/test/test_mailcap.py b/Lib/test/test_mailcap.py
index 51a0c7d..ef9cad4 100644
--- a/Lib/test/test_mailcap.py
+++ b/Lib/test/test_mailcap.py
@@ -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
index 0000000..9105054
--- /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