summaryrefslogtreecommitdiff
path: root/tests/timeout_test.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/timeout_test.py')
-rw-r--r--tests/timeout_test.py10
1 files changed, 7 insertions, 3 deletions
diff --git a/tests/timeout_test.py b/tests/timeout_test.py
index 0254b79..e33003f 100644
--- a/tests/timeout_test.py
+++ b/tests/timeout_test.py
@@ -1,12 +1,12 @@
import eventlet
-from tests import LimitedTestCase
+import tests
DELAY = 0.01
-class TestDirectRaise(LimitedTestCase):
+class TestDirectRaise(tests.LimitedTestCase):
def test_direct_raise_class(self):
try:
raise eventlet.Timeout
@@ -36,7 +36,7 @@ class TestDirectRaise(LimitedTestCase):
str(tm)
-class TestWithTimeout(LimitedTestCase):
+class TestWithTimeout(tests.LimitedTestCase):
def test_with_timeout(self):
self.assertRaises(eventlet.Timeout, eventlet.with_timeout, DELAY, eventlet.sleep, DELAY * 10)
X = object()
@@ -53,3 +53,7 @@ class TestWithTimeout(LimitedTestCase):
eventlet.Timeout,
eventlet.with_timeout,
DELAY, longer_timeout)
+
+
+def test_is_timeout_attribute():
+ tests.check_is_timeout(eventlet.Timeout())