summaryrefslogtreecommitdiff
path: root/passlib/tests/test_handlers.py
diff options
context:
space:
mode:
authorEli Collins <elic@assurancetechnologies.com>2012-03-11 18:37:49 -0400
committerEli Collins <elic@assurancetechnologies.com>2012-03-11 18:37:49 -0400
commit09b88be2e515ebeddaf64a0f15309b6a3f04416f (patch)
tree9868ccb551c5dfd6e36d95e1b90c70ca440d6b14 /passlib/tests/test_handlers.py
parent29468d26fa3c68a56bd739d4dd9be50d8dd6725c (diff)
downloadpasslib-09b88be2e515ebeddaf64a0f15309b6a3f04416f.tar.gz
added hack to clear warnings registry so assertWarningList() tests will pass reliably
Diffstat (limited to 'passlib/tests/test_handlers.py')
-rw-r--r--passlib/tests/test_handlers.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/passlib/tests/test_handlers.py b/passlib/tests/test_handlers.py
index 4547e56..580cc08 100644
--- a/passlib/tests/test_handlers.py
+++ b/passlib/tests/test_handlers.py
@@ -12,7 +12,7 @@ import warnings
from passlib import hash
from passlib.utils.compat import irange
from passlib.tests.utils import TestCase, HandlerCase, create_backend_case, \
- enable_option, b, catch_warnings, UserHandlerMixin, randintgauss
+ enable_option, b, catch_all_warnings, UserHandlerMixin, randintgauss
from passlib.utils.compat import u
#module
@@ -262,7 +262,7 @@ class _bcrypt_test(HandlerCase):
check_padding(bcrypt.encrypt("bob", rounds=bcrypt.min_rounds))
# some things that will raise warnings
- with catch_warnings(record=True) as wlog:
+ with catch_all_warnings(record=True) as wlog:
#
# test genconfig() corrects invalid salts & issues warning.
#