mirror of https://github.com/django/django.git
Improved comment formatting to appease Gaynor.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17311 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
67f7756000
commit
143fa9193c
|
@ -130,6 +130,6 @@ class TestUtilsCryptoPBKDF2(unittest.TestCase):
|
||||||
t1 = elapsed('pbkdf2("password", "salt", iterations=%d)' % n1)
|
t1 = elapsed('pbkdf2("password", "salt", iterations=%d)' % n1)
|
||||||
t2 = elapsed('pbkdf2("password", "salt", iterations=%d)' % n2)
|
t2 = elapsed('pbkdf2("password", "salt", iterations=%d)' % n2)
|
||||||
measured_scale_exponent = math.log(t2 / t1, n2 / n1)
|
measured_scale_exponent = math.log(t2 / t1, n2 / n1)
|
||||||
#This should be less than 1. We allow up to 1.1 so that tests don't
|
# This should be less than 1. We allow up to 1.1 so that tests don't
|
||||||
#fail nondeterministically too often.
|
# fail nondeterministically too often.
|
||||||
self.assertLess(measured_scale_exponent, 1.1)
|
self.assertLess(measured_scale_exponent, 1.1)
|
||||||
|
|
Loading…
Reference in New Issue