diff options
Diffstat (limited to 'passlib/tests/test_registry.py')
-rw-r--r-- | passlib/tests/test_registry.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/passlib/tests/test_registry.py b/passlib/tests/test_registry.py index 882309c..df2f618 100644 --- a/passlib/tests/test_registry.py +++ b/passlib/tests/test_registry.py @@ -16,7 +16,7 @@ from passlib import hash, registry from passlib.registry import register_crypt_handler, register_crypt_handler_path, \ get_crypt_handler, list_crypt_handlers, _unload_handler_name as unload_handler_name import passlib.utils.handlers as uh -from passlib.tests.utils import TestCase, mktemp, catch_warnings +from passlib.tests.utils import TestCase, mktemp, catch_all_warnings #module log = getLogger(__name__) @@ -112,7 +112,7 @@ class RegistryTest(TestCase): #TODO: check lazy load which calls register_crypt_handler (warning should be issued) sys.modules.pop("passlib.tests._test_bad_register", None) register_crypt_handler_path("dummy_bad", "passlib.tests._test_bad_register") - with catch_warnings(): + with catch_all_warnings(): warnings.filterwarnings("ignore", "xxxxxxxxxx", DeprecationWarning) h = get_crypt_handler("dummy_bad") from passlib.tests import _test_bad_register as tbr @@ -158,7 +158,7 @@ class RegistryTest(TestCase): register_crypt_handler(dummy_1) self.assertIs(get_crypt_handler("dummy_1"), dummy_1) - with catch_warnings(): + with catch_all_warnings(): warnings.filterwarnings("ignore", "handler names should be lower-case, and use underscores instead of hyphens:.*", UserWarning) self.assertIs(get_crypt_handler("DUMMY-1"), dummy_1) |