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 5
5
import random
6
6
import socket
7
7
import ssl
8
+ import sys
8
9
import tempfile
9
10
import unittest
10
11
import weakref
11
12
12
13
from uvloop import _testbase as tb
13
- from tests .test_process import _AsyncioTests
14
14
15
15
16
16
class _BaseProtocol (asyncio .BaseProtocol ):
@@ -683,8 +683,11 @@ def test_subprocess_protocol(self):
683
683
async def test ():
684
684
self .assertEqual (cvar .get (), 'outer' )
685
685
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)' )))
688
691
689
692
try :
690
693
inner = await proto .connection_made_fut
You can’t perform that action at this time.
0 commit comments