mirror of
https://github.com/django/django.git
synced 2025-08-04 02:48:35 +00:00
Fixed template_tests so discovery doesn't directly find tests that require setuptools.
This commit is contained in:
parent
56e777eba3
commit
6d96831769
2 changed files with 1 additions and 1 deletions
|
@ -47,7 +47,7 @@ from .test_response import (TemplateResponseTest, CacheMiddlewareTest,
|
|||
SimpleTemplateResponseTest, CustomURLConfTest)
|
||||
|
||||
try:
|
||||
from .test_loaders import RenderToStringTest, EggLoaderTest
|
||||
from .loaders import RenderToStringTest, EggLoaderTest
|
||||
except ImportError as e:
|
||||
if "pkg_resources" in e.args[0]:
|
||||
pass # If setuptools isn't installed, that's fine. Just move on.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue