diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2014-11-19 22:10:52 +0100 |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2014-11-19 22:10:52 +0100 |
commit | 4f8bdd230a7532dc31e302bcc55276ed6704df0b (patch) | |
tree | f348fe1e15b10672c0e00425db3703e1cf701007 | |
parent | 76c083c3441f2beade11b5a45ddb9f2eb5160645 (diff) | |
download | aioeventlet-4f8bdd230a7532dc31e302bcc55276ed6704df0b.tar.gz |
port runtests.py to asyncio
-rw-r--r-- | README | 9 | ||||
-rwxr-xr-x | runtests.py | 9 |
2 files changed, 14 insertions, 4 deletions
@@ -28,6 +28,13 @@ or:: Changelog ========= +Version 0.2 (development version) +--------------------------------- + +* Add a suite of automated unit tests +* Support eventlet 0.14 +* sock_connect() is now asynchronous + 2014-11-19: version 0.1 ----------------------- @@ -70,8 +77,6 @@ Not supported (yet) To do ===== -* Write new unit tests, or split Tulip test suite between implementation tests - and specification tests * Support eventlet without monkey-patching * Glue to ease debug: keep traceback between Handle, coroutine and greenthread. Is it even possible? diff --git a/runtests.py b/runtests.py index b4d90f4..e93eec3 100755 --- a/runtests.py +++ b/runtests.py @@ -277,8 +277,13 @@ def runtests(): finder = TestsFinder(args.testsdir, includes, excludes) if catchbreak: installHandler() - import trollius.coroutines - if trollius.coroutines._DEBUG: + import tests + if hasattr(tests.asyncio, 'coroutines'): + debug = tests.asyncio.coroutines._DEBUG + else: + # Tulip <= 3.4.1 + debug = tests.asyncio.tasks._DEBUG + if debug: print("Run tests in debug mode") else: print("Run tests in release mode") |