summaryrefslogtreecommitdiff
path: root/tests/__init__.py
diff options
context:
space:
mode:
authorSergey Shepelev <temotor@gmail.com>2016-12-22 04:35:14 +0300
committerSergey Shepelev <temotor@gmail.com>2016-12-22 04:35:14 +0300
commit66ad70c5189310db5c5b8916908581b391463343 (patch)
tree23595394d6f68c79d3c268b3eddc5b85e5ec8847 /tests/__init__.py
parentf190122026463b28c587760c04b4d306ba61430e (diff)
downloadeventlet-error-is-timeout.tar.gz
Diffstat (limited to 'tests/__init__.py')
-rw-r--r--tests/__init__.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/__init__.py b/tests/__init__.py
index 6ff6d2a..15058e6 100644
--- a/tests/__init__.py
+++ b/tests/__init__.py
@@ -346,6 +346,11 @@ def run_isolated(path, prefix='tests/isolated/', env=None, args=None, timeout=No
assert ok, 'Expected single line "pass" in stdout'
+def check_is_timeout(obj):
+ value_text = getattr(obj, 'is_timeout', '(missing)')
+ assert obj.is_timeout, 'type={0} str={1} .is_timeout={2}'.format(type(obj), str(obj), value_text)
+
+
certificate_file = os.path.join(os.path.dirname(__file__), 'test_server.crt')
private_key_file = os.path.join(os.path.dirname(__file__), 'test_server.key')