Add python-eventlet 0.16.1
[packages/trusty/python-eventlet.git] / eventlet / tests / nosewrapper.py
1 """ This script simply gets the paths correct for testing eventlet with the
2 hub extension for Nose."""
3 import nose
4 from os.path import dirname, realpath, abspath
5 import sys
6
7
8 parent_dir = dirname(dirname(realpath(abspath(__file__))))
9 if parent_dir not in sys.path:
10     sys.path.insert(0, parent_dir)
11
12 # hudson does a better job printing the test results if the exit value is 0
13 zero_status = '--force-zero-status'
14 if zero_status in sys.argv:
15     sys.argv.remove(zero_status)
16     launch = nose.run
17 else:
18     launch = nose.main
19
20 launch(argv=sys.argv)