Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions tests/test_context.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
import random
import socket
import ssl
import sys
import tempfile
import unittest
import weakref

from uvloop import _testbase as tb
from tests.test_process import _AsyncioTests


class _BaseProtocol(asyncio.BaseProtocol):
Expand Down Expand Up @@ -683,8 +683,11 @@ def test_subprocess_protocol(self):
async def test():
self.assertEqual(cvar.get(), 'outer')
cvar.set('inner')
await self.loop.subprocess_exec(lambda: proto,
*_AsyncioTests.PROGRAM_CAT)
await self.loop.subprocess_exec(
lambda: proto, sys.executable, b'-c',
b';'.join((b'import sys',
b'data = sys.stdin.buffer.read()',
b'sys.stdout.buffer.write(data)')))

try:
inner = await proto.connection_made_fut
Expand Down