summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEli Collins <elic@assurancetechnologies.com>2012-08-02 13:37:19 -0400
committerEli Collins <elic@assurancetechnologies.com>2012-08-02 13:37:19 -0400
commit14a546c7293a627b87e207222227491e31975d74 (patch)
treeb01b071a573421ee0bef50a35fca92a6ced45115
parent7d62a9fc8e966c2e657098b2de5fb1a6e577bdc5 (diff)
downloadpasslib-14a546c7293a627b87e207222227491e31975d74.tar.gz
filter some extraneous warnings in tests
-rw-r--r--passlib/tests/test_context_deprecated.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/passlib/tests/test_context_deprecated.py b/passlib/tests/test_context_deprecated.py
index 247162f..db0c49d 100644
--- a/passlib/tests/test_context_deprecated.py
+++ b/passlib/tests/test_context_deprecated.py
@@ -216,6 +216,8 @@ admin__context__deprecated = des_crypt, bsdi_crypt
TestCase.setUp(self)
warnings.filterwarnings("ignore",
r"The CryptPolicy class has been deprecated")
+ warnings.filterwarnings("ignore",
+ r"the method.*hash_needs_update.*is deprecated")
def test_00_constructor(self):
"test CryptPolicy() constructor"
@@ -562,6 +564,8 @@ class CryptContextTest(TestCase):
warnings.filterwarnings("ignore",
r"The CryptContext ``policy`` keyword has been deprecated.*")
warnings.filterwarnings("ignore", ".*(CryptPolicy|context\.policy).*(has|have) been deprecated.*")
+ warnings.filterwarnings("ignore",
+ r"the method.*hash_needs_update.*is deprecated")
#===================================================================
# constructor
@@ -700,6 +704,8 @@ class LazyCryptContextTest(TestCase):
descriptionPrefix = "LazyCryptContext"
def setUp(self):
+ TestCase.setUp(self)
+
# make sure this isn't registered before OR after
unload_handler_name("dummy_2")
self.addCleanup(unload_handler_name, "dummy_2")