File: run_aiotest.py

package info (click to toggle)
python-trollius 2.1~b1-5
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 1,520 kB
  • sloc: python: 21,533; ansic: 1,142; makefile: 176; sh: 44
file content (14 lines) | stat: -rw-r--r-- 377 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import aiotest.run
import sys
import trollius
if sys.platform == 'win32':
    from trollius.windows_utils import socketpair
else:
    from socket import socketpair

config = aiotest.TestConfig()
config.asyncio = trollius
config.socketpair = socketpair
config.new_event_pool_policy = trollius.DefaultEventLoopPolicy
config.call_soon_check_closed = True
aiotest.run.main(config)