Skip to content

bpo-31904: skip test_test of test_mailcap on VxWorks #23507

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 28, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions Lib/test/test_mailcap.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import test.support
from test.support import os_helper
import unittest
import sys

# Location of mailcap file
MAILCAPFILE = test.support.findfile("mailcap.txt")
Expand Down Expand Up @@ -214,6 +215,7 @@ def test_findmatch(self):
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.
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
skip test_test of test_mailcap on VxWorks