diff --git a/tests/regressiontests/templates/loaders.py b/tests/regressiontests/templates/loaders.py index 301aab4408..1773592521 100644 --- a/tests/regressiontests/templates/loaders.py +++ b/tests/regressiontests/templates/loaders.py @@ -17,7 +17,6 @@ import os.path import warnings from django.template import TemplateDoesNotExist, Context -from django.template.loaders.eggs import load_template_source as lts_egg from django.template.loaders.eggs import Loader as EggLoader from django.template import loader from django.test.utils import get_warnings_state, restore_warnings_state diff --git a/tests/regressiontests/templates/tests.py b/tests/regressiontests/templates/tests.py index 5237bb6ba0..f096042af0 100644 --- a/tests/regressiontests/templates/tests.py +++ b/tests/regressiontests/templates/tests.py @@ -37,8 +37,11 @@ from response import * try: from loaders import * -except ImportError: - pass # If setuptools isn't installed, that's fine. Just move on. +except ImportError, e: + if "pkg_resources" in e.message: + pass # If setuptools isn't installed, that's fine. Just move on. + else: + raise import filters