diff options
author | Eli Collins <elic@assurancetechnologies.com> | 2017-01-29 16:19:50 -0500 |
---|---|---|
committer | Eli Collins <elic@assurancetechnologies.com> | 2017-01-29 16:19:50 -0500 |
commit | e5147cb83e23c1ab146c2e8e85fe91f621cf308a (patch) | |
tree | acf1cba5b46679405daf0c01cb3949b285f780f2 | |
parent | 62e93f87fa0ca8e346997e5c171af47d05dd2d1b (diff) | |
download | passlib-e5147cb83e23c1ab146c2e8e85fe91f621cf308a.tar.gz |
passlib.tests: silence some scrypt-backend warnings that slipped through
-rw-r--r-- | passlib/tests/test_handlers_scrypt.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/passlib/tests/test_handlers_scrypt.py b/passlib/tests/test_handlers_scrypt.py index d7f1c83..bbd3cd7 100644 --- a/passlib/tests/test_handlers_scrypt.py +++ b/passlib/tests/test_handlers_scrypt.py @@ -5,6 +5,7 @@ # core import logging; log = logging.getLogger(__name__) import warnings +warnings.filterwarnings("ignore", ".*using builtin scrypt backend.*") # site # pkg from passlib import hash @@ -84,9 +85,9 @@ class _scrypt_test(HandlerCase): '$scrypt$ln=10,r=134217728,p=8$wvif8/4fg1Cq9V7L2dv73w$bJcLia1lyfQ1X2x0xflehwVXPzWIUQWWdnlGwfVzBeQ', ] - def setUp(self): - super(_scrypt_test, self).setUp() - warnings.filterwarnings("ignore", "Using builtin scrypt backend.*") + def setUpWarnings(self): + super(_scrypt_test, self).setUpWarnings() + warnings.filterwarnings("ignore", ".*using builtin scrypt backend.*") def populate_settings(self, kwds): # builtin is still just way too slow. |