diff options
| author | Sergey Shepelev <temotor@gmail.com> | 2013-10-07 16:48:34 +0400 |
|---|---|---|
| committer | Sergey Shepelev <temotor@gmail.com> | 2013-12-03 22:36:29 +0400 |
| commit | d2bbbd79d3f903fbff59f09467af681d5b9282cf (patch) | |
| tree | 6a6da9b62894d62fdaa1050acbd39c46e710b9e8 /tests/nosewrapper.py | |
| parent | 35f600600c59c295fab0131c7bc0032e28b70045 (diff) | |
| download | eventlet-d2bbbd79d3f903fbff59f09467af681d5b9282cf.tar.gz | |
python3 compat: remove lots of Python 2.5 and earlier dependent code; use print() function syntax
Diffstat (limited to 'tests/nosewrapper.py')
| -rw-r--r-- | tests/nosewrapper.py | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/tests/nosewrapper.py b/tests/nosewrapper.py index 7ac3fe0..5837d43 100644 --- a/tests/nosewrapper.py +++ b/tests/nosewrapper.py @@ -1,25 +1,20 @@ -""" This script simply gets the paths correct for testing eventlet with the +""" This script simply gets the paths correct for testing eventlet with the hub extension for Nose.""" import nose from os.path import dirname, realpath, abspath import sys + 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=.*_with_statement.*"] -else: - argv = sys.argv - # hudson does a better job printing the test results if the exit value is 0 zero_status = '--force-zero-status' -if zero_status in argv: - argv.remove(zero_status) +if zero_status in sys.argv: + sys.argv.remove(zero_status) launch = nose.run else: launch = nose.main -launch(argv=argv) +launch(argv=sys.argv) |
