### Eclipse Workspace Patch 1.0
#P Twisted
|
|
|
|
| 7 | 7 | |
| 8 | 8 | import gzip |
| 9 | 9 | import os |
| 10 | | import popen2 |
| 11 | 10 | import sys |
| 12 | 11 | import signal |
| 13 | 12 | import StringIO |
| … |
… |
|
| 2330 | 2329 | FDTest.skip = skipMessage |
| 2331 | 2330 | else: |
| 2332 | 2331 | # do this before running the tests: it uses SIGCHLD and stuff internally |
| 2333 | | lsOut = popen2.popen3("/bin/ls ZZXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX")[2].read() |
| | 2332 | cmd = "/bin/ls ZZXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" |
| | 2333 | try: |
| | 2334 | from subprocess import Popen, PIPE |
| | 2335 | p = Popen(cmd, shell=True, |
| | 2336 | stdin=PIPE, stdout=PIPE, stderr=PIPE, close_fds=True) |
| | 2337 | child_stderr = p.stderr |
| | 2338 | except ImportError: |
| | 2339 | import popen2 |
| | 2340 | child_stderr = popen2.popen3(cmd)[2] |
| | 2341 | |
| | 2342 | lsOut = child_stderr.read() |
| 2334 | 2343 | |
| 2335 | 2344 | if (runtime.platform.getType() != 'win32') or (not interfaces.IReactorProcess(reactor, None)): |
| 2336 | 2345 | Win32ProcessTestCase.skip = skipMessage |