diff options
author | Eli Collins <elic@assurancetechnologies.com> | 2020-10-06 14:25:15 -0400 |
---|---|---|
committer | Eli Collins <elic@assurancetechnologies.com> | 2020-10-06 14:25:15 -0400 |
commit | ff4b4bbccd4756fb2f93d0b622c42bee3a4f93dd (patch) | |
tree | 708a1322ed0239f9fc56c2fb2dfeff16f8839d48 /passlib/tests/test_handlers_bcrypt.py | |
parent | 582508faa9eb193bd6941c3d484cc75eff8f2cc0 (diff) | |
download | passlib-ff4b4bbccd4756fb2f93d0b622c42bee3a4f93dd.tar.gz |
cleanup old python compat -- removed irange() alias
Diffstat (limited to 'passlib/tests/test_handlers_bcrypt.py')
-rw-r--r-- | passlib/tests/test_handlers_bcrypt.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/passlib/tests/test_handlers_bcrypt.py b/passlib/tests/test_handlers_bcrypt.py index 55d5203..5b70a99 100644 --- a/passlib/tests/test_handlers_bcrypt.py +++ b/passlib/tests/test_handlers_bcrypt.py @@ -11,7 +11,6 @@ import warnings from passlib import hash from passlib.handlers.bcrypt import IDENT_2, IDENT_2X from passlib.utils import repeat_string, to_bytes, is_safe_crypt_input -from passlib.utils.compat import irange from passlib.tests.utils import HandlerCase, TEST_MODE from passlib.tests.test_handlers import UPASS_TABLE # module @@ -365,9 +364,9 @@ class _bcrypt_test(HandlerCase): "unexpectedly malformed hash: %r" % (hash,) self.assertTrue(hash[28] in '.Oeu', "unused bits incorrectly set in hash: %r" % (hash,)) - for i in irange(6): + for i in range(6): check_padding(bcrypt.genconfig()) - for i in irange(3): + for i in range(3): check_padding(bcrypt.using(rounds=bcrypt.min_rounds).hash("bob")) # |