summaryrefslogtreecommitdiff
path: root/passlib/tests
diff options
context:
space:
mode:
authorEli Collins <elic@assurancetechnologies.com>2016-06-10 17:26:58 -0400
committerEli Collins <elic@assurancetechnologies.com>2016-06-10 17:26:58 -0400
commit19f2c3e36d390fae5d83cff8e780453abb467043 (patch)
treeebceecbc360dc6168fc920b3618c3ef2c7bb273a /passlib/tests
parent61f94ee0cdf637f69140d75afd8f3e7ae857a700 (diff)
downloadpasslib-19f2c3e36d390fae5d83cff8e780453abb467043.tar.gz
passlib.tests: silenced some internal deprecation warnings
Diffstat (limited to 'passlib/tests')
-rw-r--r--passlib/tests/test_context_deprecated.py1
-rw-r--r--passlib/tests/test_utils.py2
2 files changed, 3 insertions, 0 deletions
diff --git a/passlib/tests/test_context_deprecated.py b/passlib/tests/test_context_deprecated.py
index 128b538..0f8ed3b 100644
--- a/passlib/tests/test_context_deprecated.py
+++ b/passlib/tests/test_context_deprecated.py
@@ -212,6 +212,7 @@ admin__context__deprecated = des_crypt, bsdi_crypt
r"The CryptPolicy class has been deprecated")
warnings.filterwarnings("ignore",
r"the method.*hash_needs_update.*is deprecated")
+ warnings.filterwarnings("ignore", "The 'all' scheme is deprecated.*")
def test_00_constructor(self):
"""test CryptPolicy() constructor"""
diff --git a/passlib/tests/test_utils.py b/passlib/tests/test_utils.py
index 4985801..1d0d0ea 100644
--- a/passlib/tests/test_utils.py
+++ b/passlib/tests/test_utils.py
@@ -5,6 +5,7 @@
from __future__ import with_statement
# core
import random
+import warnings
# site
# pkg
# module
@@ -130,6 +131,7 @@ class MiscTest(TestCase):
# generate_password
from passlib.utils import generate_password
+ warnings.filterwarnings("ignore", "The function.*generate_password() is deprecated")
self.assertEqual(len(generate_password(15)), 15)
def test_is_crypt_context(self):