Skip to content

Commit 996a1ef

Browse files
authored
skip test_test of test_mailcap on VxWorks (GH-23507)
1 parent 64c8f81 commit 996a1ef

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

Lib/test/test_mailcap.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
import test.support
55
from test.support import os_helper
66
import unittest
7+
import sys
78

89
# Location of mailcap file
910
MAILCAPFILE = test.support.findfile("mailcap.txt")
@@ -214,6 +215,7 @@ def test_findmatch(self):
214215
self._run_cases(cases)
215216

216217
@unittest.skipUnless(os.name == "posix", "Requires 'test' command on system")
218+
@unittest.skipIf(sys.platform == "vxworks", "'test' command is not supported on VxWorks")
217219
def test_test(self):
218220
# findmatch() will automatically check any "test" conditions and skip
219221
# the entry if the check fails.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
skip test_test of test_mailcap on VxWorks

0 commit comments

Comments
 (0)