summaryrefslogtreecommitdiff
path: root/passlib/tests
diff options
context:
space:
mode:
authorEli Collins <elic@assurancetechnologies.com>2020-10-06 14:39:13 -0400
committerEli Collins <elic@assurancetechnologies.com>2020-10-06 14:39:13 -0400
commitab0b14e8b2178160b1279d2a0679b8d9149cfe55 (patch)
treec5f80ad16e026ea5506343263fa5ea961fd7ce70 /passlib/tests
parentf5da8e35044119040776cb5564d4a5f82de9928d (diff)
downloadpasslib-ab0b14e8b2178160b1279d2a0679b8d9149cfe55.tar.gz
cleanup old python compat -- removed suppress_cause() and error_from() wrappers
Diffstat (limited to 'passlib/tests')
-rw-r--r--passlib/tests/test_ext_django_source.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/passlib/tests/test_ext_django_source.py b/passlib/tests/test_ext_django_source.py
index 49d66cb..cc8c25f 100644
--- a/passlib/tests/test_ext_django_source.py
+++ b/passlib/tests/test_ext_django_source.py
@@ -8,7 +8,6 @@ test passlib.ext.django against django source tests
import logging; log = logging.getLogger(__name__)
# site
# pkg
-from passlib.utils.compat import suppress_cause
from passlib.ext.django.utils import DJANGO_VERSION, DjangoTranslator, _PasslibHasherWrapper
# tests
from passlib.tests.utils import TestCase, TEST_MODE
@@ -59,10 +58,8 @@ elif has_min_django:
try:
from auth_tests import test_hashers as test_hashers_mod
except ImportError as err:
- raise suppress_cause(
- EnvironmentError("error trying to import django tests "
- "from source path (%r): %r" %
- (source_path, err)))
+ raise EnvironmentError("error trying to import django tests "
+ "from source path (%r): %r" % (source_path, err)) from None
finally:
sys.path.remove(tests_path)