File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change 55import random
66import socket
77import ssl
8+ import sys
89import tempfile
910import unittest
1011import weakref
1112
1213from uvloop import _testbase as tb
13- from tests .test_process import _AsyncioTests
1414
1515
1616class _BaseProtocol (asyncio .BaseProtocol ):
@@ -683,8 +683,11 @@ def test_subprocess_protocol(self):
683683 async def test ():
684684 self .assertEqual (cvar .get (), 'outer' )
685685 cvar .set ('inner' )
686- await self .loop .subprocess_exec (lambda : proto ,
687- * _AsyncioTests .PROGRAM_CAT )
686+ await self .loop .subprocess_exec (
687+ lambda : proto , sys .executable , b'-c' ,
688+ b';' .join ((b'import sys' ,
689+ b'data = sys.stdin.buffer.read()' ,
690+ b'sys.stdout.buffer.write(data)' )))
688691
689692 try :
690693 inner = await proto .connection_made_fut
You can’t perform that action at this time.
0 commit comments