summaryrefslogtreecommitdiff
path: root/tests/api_test.py
diff options
context:
space:
mode:
authorRyan Williams <rdw@lindenlab.com>2009-08-24 22:35:25 -0700
committerRyan Williams <rdw@lindenlab.com>2009-08-24 22:35:25 -0700
commit488f4abd4292936064ae308e7fe989e46bbdff9c (patch)
tree3f65995d02d632be4e984b7f7954e6514ca5ec0c /tests/api_test.py
parentde77cb06b0ce5a0f1e650d7bb393a14282780e83 (diff)
downloadeventlet-488f4abd4292936064ae308e7fe989e46bbdff9c.tar.gz
Added cool little debug mode to Hub which makes it easier to see why a particular fileno is in the hub by recording the traceback of when the fileno was added. Enable this mode by doing api.get_hub().debug = True. Tweaked tpool so that it only starts up its thread pool when you actually call execute(). I think this is not a performance hit and it will make it somewhat nicer to use. Some other randomc changes like more explicit package name in test_named so it passes when called from within nose.
Diffstat (limited to 'tests/api_test.py')
-rw-r--r--tests/api_test.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/api_test.py b/tests/api_test.py
index 5ba8248..ddf2fd6 100644
--- a/tests/api_test.py
+++ b/tests/api_test.py
@@ -188,7 +188,7 @@ class TestApi(TestCase):
check_hub()
def test_named(self):
- named_foo = api.named('api_test.Foo')
+ named_foo = api.named('tests.api_test.Foo')
self.assertEquals(
named_foo.__name__,
"Foo")