asyncio, selectors: Update to the upstream version

This commit is contained in:
Yury Selivanov 2016-03-02 10:37:59 -05:00
parent 049205f646
commit 0c6a34409e
2 changed files with 13 additions and 3 deletions

View file

@ -427,9 +427,10 @@ class SubprocessMixin:
create = asyncio.create_subprocess_exec(sys.executable, '-c',
'pass', loop=self.loop)
with support.check_no_resource_warning(self):
with warnings.catch_warnings(record=True) as warns:
with self.assertRaises(exc):
self.loop.run_until_complete(create)
self.assertEqual(warns, [])
if sys.platform != 'win32':