Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(119832)

Unified Diff: Lib/test/test_mailcap.py

Issue 23670: Modifications to support iOS as a development platform
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Lib/test/test_logging.py ('k') | Lib/test/test_marshal.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
--- a/Lib/test/test_mailcap.py Tue Mar 01 10:26:10 2016 +0200
+++ b/Lib/test/test_mailcap.py Wed Mar 02 00:01:35 2016 +0000
@@ -1,11 +1,12 @@
import mailcap
import os
import shutil
+import sys
import test.support
import unittest
# Location of mailcap file
MAILCAPFILE = test.support.findfile("mailcap.txt")
# Dict to act as mock mailcap entry for this test
# The keys and values should match the contents of MAILCAPFILE
@@ -185,17 +186,17 @@ class FindmatchTest(unittest.TestCase):
{"filename": fname},
("/usr/local/bin/showaudio audio/*", audio_entry)),
([c, "message/external-body"],
{"plist": plist},
("showexternal /dev/null default john python.org /tmp foo bar", message_entry))
]
self._run_cases(cases)
- @unittest.skipUnless(os.name == "posix", "Requires 'test' command on system")
+ @unittest.skipUnless(os.name == "posix" and sys.platform != 'ios', "Requires 'test' command on system")
def test_test(self):
# findmatch() will automatically check any "test" conditions and skip
# the entry if the check fails.
caps = {"test/pass": [{"test": "test 1 -eq 1"}],
"test/fail": [{"test": "test 1 -eq 0"}]}
# test case: (findmatch args, findmatch keyword args, expected output)
# positional args: caps, MIMEtype, key ("test")
# keyword args: N/A
« no previous file with comments | « Lib/test/test_logging.py ('k') | Lib/test/test_marshal.py » ('j') | no next file with comments »

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+