skip test_test of test_mailcap on VxWorks (GH-23507)
This commit is contained in:
parent
64c8f81047
commit
996a1ef8ae
|
@ -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.
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
skip test_test of test_mailcap on VxWorks
|
Loading…
Reference in New Issue