Permalink
Browse files

Fix test runner to exit correctly.

The attempt at catching ImportError-driven exits seemed broken, so nuked it. Bah.
  • Loading branch information...
1 parent 2443c52 commit a8e02d745fb1545251d9f78edae6eab0cf099b03 @bitprophet bitprophet committed Sep 9, 2012
Showing with 1 addition and 4 deletions.
  1. +1 −4 fabfile/__init__.py
View
@@ -22,10 +22,7 @@ def test(args=None):
"""
default_args = "-sv --with-doctest --nologcapture --with-color"
default_args += (" " + args) if args else ""
- try:
- nose.core.run(argv=[''] + default_args.split())
- except SystemExit:
- abort("Nose encountered an error; you may be missing newly added test dependencies. Try running 'pip install -r requirements.txt'.")
+ nose.core.run_exit(argv=[''] + default_args.split())
@task

0 comments on commit a8e02d7

Please sign in to comment.