From 5fb15e5a4ba08dfa7a1985422578ca1da88eefdd Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Thu, 18 Dec 2014 12:28:08 +0100 Subject: 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. --- tests/test_subprocess.py | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'tests/test_subprocess.py') 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)'] -- cgit v1.2.1