1
0
mirror of https://github.com/django/django.git synced 2025-10-24 06:06:09 +00:00

Reverted type check added in 62954ba04c.

Refs #17040.
This commit is contained in:
Aymeric Augustin
2012-08-21 08:44:16 +02:00
parent 831f2846dd
commit e89bc39935
2 changed files with 4 additions and 6 deletions

View File

@@ -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):