diff options
| author | Eli Collins <elic@assurancetechnologies.com> | 2011-12-06 13:25:28 -0500 |
|---|---|---|
| committer | Eli Collins <elic@assurancetechnologies.com> | 2011-12-06 13:25:28 -0500 |
| commit | 2ed819dca974d6f9feb479381f1e827d718a4fcc (patch) | |
| tree | e1a85cd7de6c0ae2c633a5ae9d1f0f7491ae8fc8 /passlib/tests/utils.py | |
| parent | 281c507652e0bcb230101151bf5a09499fb7045d (diff) | |
| download | passlib-2ed819dca974d6f9feb479381f1e827d718a4fcc.tar.gz | |
moved sys_bits to compat, added exc_err, removed utils.py32_lang
Diffstat (limited to 'passlib/tests/utils.py')
| -rw-r--r-- | passlib/tests/utils.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/passlib/tests/utils.py b/passlib/tests/utils.py index 06aea3c..ae43f61 100644 --- a/passlib/tests/utils.py +++ b/passlib/tests/utils.py @@ -37,7 +37,7 @@ from passlib import registry, utils from passlib.utils import classproperty, handlers as uh, \ has_rounds_info, has_salt_info, MissingBackendError, \ rounds_cost_values, b, bytes, native_str, NoneType -from passlib.utils.compat import iteritems, irange, callable, sb_types +from passlib.utils.compat import iteritems, irange, callable, sb_types, exc_err #local __all__ = [ #util funcs @@ -218,7 +218,8 @@ class TestCase(unittest.TestCase): msg = kwds.pop("__msg__", None) try: result = func(*args, **kwds) - except Exception, err: + except Exception: + err = exc_err() # NOTE: done to avoid 2/3 exception-syntax issue if isinstance(err, type): return True ##import traceback, sys |
