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

Side by Side Diff: Lib/test/test_subprocess.py

Issue 23670: Modifications to support iOS as a development platform
Patch Set: Created 3 years, 8 months ago
Left:
Right:
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 unified diff | Download patch
« no previous file with comments | « Lib/test/test_source_encoding.py ('k') | Lib/test/test_sundry.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 import unittest 1 import unittest
2 from test.support import script_helper 2 from test.support import script_helper
3 from test import support 3 from test import support
4 import subprocess 4 import subprocess
5 import sys 5 import sys
6 import signal 6 import signal
7 import io 7 import io
8 import locale 8 import locale
9 import os 9 import os
10 import errno 10 import errno
11 import tempfile 11 import tempfile
12 import time 12 import time
13 import re 13 import re
14 import selectors 14 import selectors
15 import sysconfig 15 import sysconfig
16 import warnings 16 import warnings
17 import select 17 import select
18 import shutil 18 import shutil
19 import gc 19 import gc
20 import textwrap 20 import textwrap
21 21
22 try: 22 try:
23 import threading 23 import threading
24 except ImportError: 24 except ImportError:
25 threading = None 25 threading = None
26 26
27 mswindows = (sys.platform == "win32") 27 mswindows = (sys.platform == "win32")
28
29 if not hasattr(subprocess, 'Popen'):
30 raise unittest.SkipTest("subprocess module doesn't provide Popen()")
28 31
29 # 32 #
30 # Depends on the following external programs: Python 33 # Depends on the following external programs: Python
31 # 34 #
32 35
33 if mswindows: 36 if mswindows:
34 SETBINARY = ('import msvcrt; msvcrt.setmode(sys.stdout.fileno(), ' 37 SETBINARY = ('import msvcrt; msvcrt.setmode(sys.stdout.fileno(), '
35 'os.O_BINARY);') 38 'os.O_BINARY);')
36 else: 39 else:
37 SETBINARY = '' 40 SETBINARY = ''
(...skipping 2636 matching lines...) Expand 10 before | Expand all | Expand 10 after
2674 CommandsWithSpaces, 2677 CommandsWithSpaces,
2675 ContextManagerTests, 2678 ContextManagerTests,
2676 RunFuncTestCase, 2679 RunFuncTestCase,
2677 ) 2680 )
2678 2681
2679 support.run_unittest(*unit_tests) 2682 support.run_unittest(*unit_tests)
2680 support.reap_children() 2683 support.reap_children()
2681 2684
2682 if __name__ == "__main__": 2685 if __name__ == "__main__":
2683 unittest.main() 2686 unittest.main()
OLDNEW
« no previous file with comments | « Lib/test/test_source_encoding.py ('k') | Lib/test/test_sundry.py » ('j') | no next file with comments »

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