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

Unified Diff: Lib/test/test_doctest.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_cmd_line.py ('k') | Lib/test/test_faulthandler.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
--- a/Lib/test/test_doctest.py Tue Mar 01 10:26:10 2016 +0200
+++ b/Lib/test/test_doctest.py Wed Mar 02 00:01:35 2016 +0000
@@ -2702,17 +2702,22 @@ Check doctest with a non-ascii filename:
File ...
compileflags, 1), test.globs)
File "<doctest foo-bär@baz[0]>", line 1, in <module>
raise Exception('clé')
Exception: clé
TestResults(failed=1, attempted=1)
"""
-def test_CLI(): r"""
+if sys.platform == 'ios':
+ # Mobile platforms can't invoke doctest from the command line,
+ # so skip this test.
+ pass
+else:
+ def test_CLI(): r"""
The doctest module can be used to run doctests against an arbitrary file.
These tests test this CLI functionality.
We'll use the support module's script_helpers for this, and write a test files
to a temp dir to run the command against. Due to a current limitation in
script_helpers, though, we need a little utility function to turn the returned
output into something we can doctest against:
« no previous file with comments | « Lib/test/test_cmd_line.py ('k') | Lib/test/test_faulthandler.py » ('j') | no next file with comments »

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