summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2014-11-19 22:10:52 +0100
committerVictor Stinner <victor.stinner@gmail.com>2014-11-19 22:10:52 +0100
commit4f8bdd230a7532dc31e302bcc55276ed6704df0b (patch)
treef348fe1e15b10672c0e00425db3703e1cf701007
parent76c083c3441f2beade11b5a45ddb9f2eb5160645 (diff)
downloadaioeventlet-4f8bdd230a7532dc31e302bcc55276ed6704df0b.tar.gz
port runtests.py to asyncio
-rw-r--r--README9
-rwxr-xr-xruntests.py9
2 files changed, 14 insertions, 4 deletions
diff --git a/README b/README
index 4d27720..dd5e70b 100644
--- a/README
+++ b/README
@@ -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")