summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAymeric Augustin <aymeric.augustin@m4x.org>2012-08-21 08:44:16 +0200
committerAymeric Augustin <aymeric.augustin@m4x.org>2012-08-21 09:00:55 +0200
commite89bc39935afc5096e6a51a49874b2d30cbc2b5e (patch)
tree9ad53c5a869e394784caa53d91276879c304c5d9 /tests
parent831f2846dd9b3a93344e3c5cb3ea57d76317ae2c (diff)
Reverted type check added in 62954ba04c.
Refs #17040.
Diffstat (limited to 'tests')
-rw-r--r--tests/regressiontests/utils/crypto.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/regressiontests/utils/crypto.py b/tests/regressiontests/utils/crypto.py
index 447b2e5b80..4c6b722ca9 100644
--- a/tests/regressiontests/utils/crypto.py
+++ b/tests/regressiontests/utils/crypto.py
@@ -15,8 +15,8 @@ class TestUtilsCryptoMisc(unittest.TestCase):
# It's hard to test for constant time, just test the result.
self.assertTrue(constant_time_compare(b'spam', b'spam'))
self.assertFalse(constant_time_compare(b'spam', b'eggs'))
- with self.assertRaises(TypeError):
- constant_time_compare('spam', 'spam')
+ self.assertTrue(constant_time_compare('spam', 'spam'))
+ self.assertFalse(constant_time_compare('spam', 'eggs'))
class TestUtilsCryptoPBKDF2(unittest.TestCase):