diff options
| author | Victor Stinner <victor.stinner@gmail.com> | 2014-12-18 12:28:08 +0100 |
|---|---|---|
| committer | Victor Stinner <victor.stinner@gmail.com> | 2014-12-18 12:28:08 +0100 |
| commit | 5fb15e5a4ba08dfa7a1985422578ca1da88eefdd (patch) | |
| tree | 927f9a2c8cc435fd5e2d08eb3c3176a3e068f770 /tests/test_subprocess.py | |
| parent | f37ac51750043efeafd94151ef8f38c838509e6d (diff) | |
| download | trollius-5fb15e5a4ba08dfa7a1985422578ca1da88eefdd.tar.gz | |
Copy a subset of test.support from CPython 3.5 to no more depend on the test
module to run the asyncio test suite. The test module is rarely installed.
Diffstat (limited to 'tests/test_subprocess.py')
| -rw-r--r-- | tests/test_subprocess.py | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/tests/test_subprocess.py b/tests/test_subprocess.py index 5c0a2c8..08c8ac2 100644 --- a/tests/test_subprocess.py +++ b/tests/test_subprocess.py @@ -1,13 +1,17 @@ -from asyncio import subprocess -from asyncio import test_utils -import asyncio import signal import sys import unittest from unittest import mock -from test import support + +import asyncio +from asyncio import subprocess +from asyncio import test_utils if sys.platform != 'win32': from asyncio import unix_events +try: + from test import support # PIPE_MAX_SIZE +except ImportError: + from asyncio import test_support as support # Program blocking PROGRAM_BLOCKED = [sys.executable, '-c', 'import time; time.sleep(3600)'] |
