If the test framework can't be imported, show the error instead of going to a fallback.
@@ -67,18 +67,14 @@ def main():
import pytest
else:
- raise ImportError()
+ raise ImportError('Test framework: %s not supported.' % (found_other_test_framework_param,))
else:
raise ImportError()
except ImportError:
if found_other_test_framework_param:
- sys.stderr.write('Warning: Could not import the test runner: %s. Running with the default pydev unittest runner instead.\n' % (
- test_framework,))
- if DEBUG:
- import traceback
- traceback.print_exception(sys.exc_info()[1])
+ raise
test_framework = None
