﻿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
25868	Importing django.test.utils.get_runner fails on Django 1.9 with Python 3.3	Lewis Sobotkiewicz	nobody	"The following code:
{{{
from django.test.utils import get_runner
}}}
 
Errors out with the following traceback in Django 1.9 with Python 3.3:

{{{
Traceback (most recent call last):
  File ""runtests.py"", line 116, in <module>
    runtests(failfast=options.failfast, verbosity=options.verbosity, coverage=options.coverage, *args)
  File ""runtests.py"", line 92, in runtests
    from django.test.utils import get_runner
  File ""/usr/local/lib/python3.3/site-packages/django/test/__init__.py"", line 5, in <module>
    from django.test.client import Client, RequestFactory
  File ""/usr/local/lib/python3.3/site-packages/django/test/client.py"", line 12, in <module>
    from django.apps import apps
  File ""/usr/local/lib/python3.3/site-packages/django/apps/__init__.py"", line 1, in <module>
    from .config import AppConfig
  File ""/usr/local/lib/python3.3/site-packages/django/apps/config.py"", line 6, in <module>
    from django.utils.module_loading import module_has_submodule
  File ""/usr/local/lib/python3.3/site-packages/django/utils/module_loading.py"", line 67, in <module>
    from importlib.util import find_spec as importlib_find
ImportError: cannot import name find_spec
}}}

Apparently importlib.util.find_spec appeared in Python 3.4 and thus fails to import in Python 3.2 and 3.3: https://docs.python.org/3/library/importlib.html#importlib.util.find_spec"	Bug	closed	Testing framework	1.9	Normal	invalid			Unreviewed	0	0	0	0	0	0
