summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEli Collins <elic@assurancetechnologies.com>2016-11-22 19:39:42 -0500
committerEli Collins <elic@assurancetechnologies.com>2016-11-22 19:39:42 -0500
commit23dadff5c1264d2149031b51c64428bd6e8f9533 (patch)
treeb5687cf8544bc277f3e7686a3b8ccc4264eed392
parent4b6f3b8043c7b95f04a0d1886669313c52191fa8 (diff)
downloadpasslib-23dadff5c1264d2149031b51c64428bd6e8f9533.tar.gz
bugfix: tests: fix import issue when django not present
-rw-r--r--passlib/tests/test_ext_django_source.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/passlib/tests/test_ext_django_source.py b/passlib/tests/test_ext_django_source.py
index 4a4b397..b86e9ee 100644
--- a/passlib/tests/test_ext_django_source.py
+++ b/passlib/tests/test_ext_django_source.py
@@ -14,8 +14,10 @@ from passlib.ext.django.utils import DJANGO_VERSION, DjangoTranslator, _PasslibH
# tests
from passlib.tests.utils import TestCase, TEST_MODE
from .test_ext_django import (
- has_min_django, stock_config, settings, _ExtensionSupport,
+ has_min_django, stock_config, _ExtensionSupport,
)
+if has_min_django:
+ from .test_ext_django import settings
# local
__all__ = [
"HashersTest",