Skip to content

Commit

Permalink
Update 'run-tests.py' to invoke unittest2 correctly on Python 2.6
Browse files Browse the repository at this point in the history
  • Loading branch information
Andy Freeland committed Mar 19, 2014
1 parent 0335f6d commit bb83b85
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion run-tests.py
Expand Up @@ -41,8 +41,10 @@ def main():

if sys.version_info >= (3, 3):
cmd = ['python', '-m', 'unittest', 'tests']
else:
elif sys.version_info >= (2, 7):
cmd = ['python', '-m', 'unittest2', 'tests']
else:
cmd = ['unit2', 'discover', '-s', 'tests', '-p', '[a-z]*.py']

try:
subprocess.check_call(cmd)
Expand Down

0 comments on commit bb83b85

Please sign in to comment.