Skip to content

Commit

Permalink
Remove import tests for testinstalled
Browse files Browse the repository at this point in the history
  • Loading branch information
fantix committed Feb 10, 2021
1 parent 2090537 commit e955017
Showing 1 changed file with 6 additions and 3 deletions.
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

0 comments on commit e955017

Please sign in to comment.