diff options
| author | Yury Selivanov <yselivanov@sprymix.com> | 2014-02-19 03:56:15 (GMT) |
|---|---|---|
| committer | Yury Selivanov <yselivanov@sprymix.com> | 2014-02-19 03:56:15 (GMT) |
| commit | b41a42e316b09f6abef4cc5dc1fb88ce20b8c306 (patch) | |
| tree | ba0ed93255205863fb8250613bda5454fc8b4641 /Lib/test/test_asyncio/test_subprocess.py | |
| parent | b0b0e628ee453126efb16805588ef60e2601fd08 (diff) | |
| download | cpython-b41a42e316b09f6abef4cc5dc1fb88ce20b8c306.zip cpython-b41a42e316b09f6abef4cc5dc1fb88ce20b8c306.tar.gz cpython-b41a42e316b09f6abef4cc5dc1fb88ce20b8c306.tar.bz2 | |
asyncio: pep8-ify the code.
Diffstat (limited to 'Lib/test/test_asyncio/test_subprocess.py')
| -rw-r--r-- | Lib/test/test_asyncio/test_subprocess.py | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/Lib/test/test_asyncio/test_subprocess.py b/Lib/test/test_asyncio/test_subprocess.py index 1b2f05b..14fd17e 100644 --- a/Lib/test/test_asyncio/test_subprocess.py +++ b/Lib/test/test_asyncio/test_subprocess.py @@ -21,6 +21,7 @@ PROGRAM_CAT = [ 'sys.stdout.buffer.write(data)'))] class SubprocessMixin: + def test_stdin_stdout(self): args = PROGRAM_CAT @@ -132,6 +133,7 @@ class SubprocessMixin: if sys.platform != 'win32': # Unix class SubprocessWatcherMixin(SubprocessMixin): + Watcher = None def setUp(self): @@ -151,14 +153,20 @@ if sys.platform != 'win32': self.loop.close() policy.set_event_loop(None) - class SubprocessSafeWatcherTests(SubprocessWatcherMixin, unittest.TestCase): + class SubprocessSafeWatcherTests(SubprocessWatcherMixin, + unittest.TestCase): + Watcher = unix_events.SafeChildWatcher - class SubprocessFastWatcherTests(SubprocessWatcherMixin, unittest.TestCase): + class SubprocessFastWatcherTests(SubprocessWatcherMixin, + unittest.TestCase): + Watcher = unix_events.FastChildWatcher + else: # Windows class SubprocessProactorTests(SubprocessMixin, unittest.TestCase): + def setUp(self): policy = asyncio.get_event_loop_policy() self.loop = asyncio.ProactorEventLoop() |
