﻿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
21206	Misleading Exception on empty test class: ImportError: Start directory is not importable	thepapermen	nobody	"Django 1.6 test runner produces misleading exception if you try to run a test case which does not contain any methods with names starting with `test`.

Issues of this type are time-consuming to debug, since the exception puts you on the wrong path of searching for faulty and/or circular imports. 

To reproduce:

{{{
#!python
""""""
This file is placed in application/tests.py. `application` directory does contain an __init__.py file.
""""""
from django.test import TestCase

class AnEmptyTest(TestCase):
    """"""
    Test case without method names that start with `test`.
    """"""
    pass
}}}
`./manage.py test application.tests.AnEmptyTest` will raise an error: `ImportError: Start directory is not importable: 'application.tests.AnEmptyTest'`. If you add an empty method with name starting with `test`, test runner will run fine.

{{{
#!python
from django.test import TestCase

class ANonEmptyTest(TestCase):
    """"""
    This will run fine.
    """"""
    def test_something(self):
        pass
}}}

Desired behavior for `AnEmptyTest`: launch test runner and run zero tests.
"	Bug	closed	Testing framework	1.6-beta-1	Normal	fixed			Accepted	1	0	0	0	0	0
