summaryrefslogtreecommitdiff
path: root/tests/api_test.py
diff options
context:
space:
mode:
authorRyan Williams <rdw@lindenlab.com>2010-05-05 21:44:35 -0700
committerRyan Williams <rdw@lindenlab.com>2010-05-05 21:44:35 -0700
commitf8ced5cb9b15f5d693e28299c0bee73ba5d70a37 (patch)
tree08b7291ee06a1c71b5b9766256d7e370d81b4d5c /tests/api_test.py
parent1a6f4e491fe779fcdd8acd540003f292ad02cb78 (diff)
downloadeventlet-f8ced5cb9b15f5d693e28299c0bee73ba5d70a37.tar.gz
Converted fully over to what the internet assures me is the American spelling of 'canceled' -- this only affects internal variables. Also cleaned up the meticulous timer accounting of the hub tests so they stop failing after other tests are run. Also added new parameter to the abort method because it seemed to be the dominant mode of operation.
Diffstat (limited to 'tests/api_test.py')
-rw-r--r--tests/api_test.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/api_test.py b/tests/api_test.py
index a41ffc8..3a9f337 100644
--- a/tests/api_test.py
+++ b/tests/api_test.py
@@ -20,9 +20,8 @@ def check_hub():
assert not dct, "hub.%s not empty: %s" % (nm, dct)
# Stop the runloop (unless it's twistedhub which does not support that)
if not getattr(hub, 'uses_twisted_reactor', None):
- hub.abort()
- api.sleep(0)
- ### ??? assert not hubs.get_hub().running
+ hub.abort(True)
+ assert not hub.running
class TestApi(TestCase):