summaryrefslogtreecommitdiff
path: root/tests/auth_tests/test_hashers.py
diff options
context:
space:
mode:
authorSimon Charette <charette.s@gmail.com>2017-01-19 09:48:01 -0500
committerSimon Charette <charette.s@gmail.com>2017-01-19 11:31:07 -0500
commit9695b149820cff31cfa48973efe4256c80811e87 (patch)
treebf73b5301788ac35873b208b15c512fb585708b9 /tests/auth_tests/test_hashers.py
parent41e0033caf1267edda2b780ae50a3881c3de94ef (diff)
Refs #23919 -- Removed str() conversion of type and method __name__.
Diffstat (limited to 'tests/auth_tests/test_hashers.py')
-rw-r--r--tests/auth_tests/test_hashers.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auth_tests/test_hashers.py b/tests/auth_tests/test_hashers.py
index 4b6aa8f799..59de85ad9f 100644
--- a/tests/auth_tests/test_hashers.py
+++ b/tests/auth_tests/test_hashers.py
@@ -429,7 +429,7 @@ class TestUtilsHashPass(SimpleTestCase):
self.assertEqual("Hasher 'BasePasswordHasher' doesn't specify a library attribute", str(e.exception))
def test_load_library_importerror(self):
- PlainHasher = type(str('PlainHasher'), (BasePasswordHasher,), {'algorithm': 'plain', 'library': 'plain'})
+ PlainHasher = type('PlainHasher', (BasePasswordHasher,), {'algorithm': 'plain', 'library': 'plain'})
# Python 3 adds quotes around module name
msg = "Couldn't load 'PlainHasher' algorithm library: No module named '?plain'?"
with self.assertRaisesRegex(ValueError, msg):