summaryrefslogtreecommitdiff
path: root/tests/nosewrapper.py
diff options
context:
space:
mode:
authorRyan Williams <rdw@lindenlab.com>2009-12-03 16:53:04 -0800
committerRyan Williams <rdw@lindenlab.com>2009-12-03 16:53:04 -0800
commit11f0337b8fbb89b58370538acaf6fe817a354d95 (patch)
treeee8aa2377a4ab9c1255fb2f45e43004e39af4b95 /tests/nosewrapper.py
parente85831c6dc1f381d710e71692d204b25ba4e1e1e (diff)
downloadeventlet-11f0337b8fbb89b58370538acaf6fe817a354d95.tar.gz
Fixes to make tests pass on python2.4. The tricks to make with-statement stuff work even when imported by 2.4 are especially tricky, but there doesn't seem to be a better alternative.
Diffstat (limited to 'tests/nosewrapper.py')
-rw-r--r--tests/nosewrapper.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/nosewrapper.py b/tests/nosewrapper.py
index ce7556f..7b23a16 100644
--- a/tests/nosewrapper.py
+++ b/tests/nosewrapper.py
@@ -8,5 +8,11 @@ parent_dir = dirname(dirname(realpath(abspath(__file__))))
if parent_dir not in sys.path:
sys.path.insert(0, parent_dir)
+# hacky hacks: skip test__api_timeout when under 2.4 because otherwise it SyntaxErrors
+if sys.version_info < (2,5):
+ argv = sys.argv + ["--exclude=.*test__api_timeout.*"]
+else:
+ argv = sys.argv
+
from tests import eventlethub
-nose.main(addplugins=[eventlethub.EventletHub()])
+nose.main(addplugins=[eventlethub.EventletHub()], argv=argv)