Skip to content

Commit e955017

Browse files
committed
Remove import tests for testinstalled
1 parent 2090537 commit e955017

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

tests/test_context.py

+6-3
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@
55
import random
66
import socket
77
import ssl
8+
import sys
89
import tempfile
910
import unittest
1011
import weakref
1112

1213
from uvloop import _testbase as tb
13-
from tests.test_process import _AsyncioTests
1414

1515

1616
class _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

0 commit comments

Comments
 (0)