skip to navigation
skip to content

aiotest 0.3

test suite to validate an implementation of the asyncio API, the PEP 3156

aiotest is a test suite to validate an implementation of the asyncio API, the PEP 3156.

Event loops:

Usage

Script to run aiotest on trollius:

import aiotest.run
import trollius

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

The script has command line options, use --help to list them.

Installation

Type:

pip install aiotest

Event loops:

  • On Python 2 and Python 3.2, aiotest requires trollius: pip install trollius
  • On Python 3.3, aiotest requires asyncio (or trollius): pip install asyncio
  • On Python 3.4 and newer, no extra dependency is needed

Tests:

  • Run tox, need the tox program (pip install tox)
  • Run python test_trollius.py, need trollius
  • Run python test_asyncio.py, need asyncio

Changelog

2016-02-22: Version 0.3

  • Add TestConfig.stopping to control if loop.stop() uses the new behaviour of stop (stopping=True, ex: Python 3.4.4 and 3.5.1), or the old behaviour (stopping=False, ex: Trollius 2.0)

2014-12-18: Version 0.2

  • Add CallbackTests.test_call_soon_control()
  • Fix ThreadTests.test_policy(): asyncio.get_event_loop() now runs a RuntimeError, not an AssertionError
  • Drop support for usage on the command line, there was a design issue when testing Trollius when the asyncio module was also importable (ex: Python 3.4)

2014-12-12: Version 0.1

  • First public release
 
File Type Py Version Uploaded on Size
aiotest-0.3-py2-none-any.whl (md5) Python Wheel 2.7 2016-02-22 13KB
aiotest-0.3.tar.gz (md5) Source 2016-02-22 9KB