﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
25542	Discover runner will raise AttributeError when test modules raise ImportError	Hiroki Kiyohara	nobody	"When test modules raise ImportError, the discover runner will raise AttributeError.
It's difficult to detect the error reason.

I added a patch to check this problem.

{{{
ERROR: test_import_error_in_tests_module (test_runner.test_discover_runner.DiscoverRunnerTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File ""/home/hirokiky/dev/django/django/tests/test_runner/test_discover_runner.py"", line 172, in test_import_error_in_tests_module
    [""test_discovery_sample.tests_discovery_import_error""],
  File ""/home/hirokiky/dev/django/django/django/test/runner.py"", line 422, in build_suite
    tests = self.test_loader.loadTestsFromName(label)
  File ""/usr/lib/python2.7/unittest/loader.py"", line 100, in loadTestsFromName
    parent, obj = obj, getattr(obj, part)
AttributeError: 'module' object has no attribute 'tests_discovery_import_error'

}}}
"	Cleanup/optimization	closed	Testing framework	dev	Normal	wontfix			Accepted	0	0	0	0	0	0
