skip test_test of test_mailcap on VxWorks (GH-23507)

This commit is contained in:
pxinwr 2020-11-29 05:49:47 +08:00 committed by GitHub
parent 64c8f81047
commit 996a1ef8ae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 0 deletions

View File

@ -4,6 +4,7 @@ import copy
import test.support import test.support
from test.support import os_helper from test.support import os_helper
import unittest import unittest
import sys
# Location of mailcap file # Location of mailcap file
MAILCAPFILE = test.support.findfile("mailcap.txt") MAILCAPFILE = test.support.findfile("mailcap.txt")
@ -214,6 +215,7 @@ class FindmatchTest(unittest.TestCase):
self._run_cases(cases) self._run_cases(cases)
@unittest.skipUnless(os.name == "posix", "Requires 'test' command on system") @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): def test_test(self):
# findmatch() will automatically check any "test" conditions and skip # findmatch() will automatically check any "test" conditions and skip
# the entry if the check fails. # the entry if the check fails.

View File

@ -0,0 +1 @@
skip test_test of test_mailcap on VxWorks