summaryrefslogtreecommitdiff
path: root/passlib/tests/test_handlers_argon2.py
diff options
context:
space:
mode:
Diffstat (limited to 'passlib/tests/test_handlers_argon2.py')
-rw-r--r--passlib/tests/test_handlers_argon2.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/passlib/tests/test_handlers_argon2.py b/passlib/tests/test_handlers_argon2.py
index e771769..3f800ba 100644
--- a/passlib/tests/test_handlers_argon2.py
+++ b/passlib/tests/test_handlers_argon2.py
@@ -10,7 +10,6 @@ import warnings
# site
# pkg
from passlib import hash
-from passlib.utils.compat import unicode
from passlib.tests.utils import HandlerCase, TEST_MODE
from passlib.tests.test_handlers import UPASS_TABLE, PASS_TABLE_UTF8
# module
@@ -200,7 +199,7 @@ class _base_argon2_test(HandlerCase):
]
def setUpWarnings(self):
- super(_base_argon2_test, self).setUpWarnings()
+ super().setUpWarnings()
warnings.filterwarnings("ignore", ".*Using argon2pure backend.*")
def do_stub_encrypt(self, handler=None, **settings):
@@ -213,7 +212,7 @@ class _base_argon2_test(HandlerCase):
assert self.checksum
return self.to_string()
else:
- return super(_base_argon2_test, self).do_stub_encrypt(handler, **settings)
+ return super().do_stub_encrypt(handler, **settings)
def test_03_legacy_hash_workflow(self):
# override base method
@@ -303,7 +302,7 @@ class _base_argon2_test(HandlerCase):
# check supported type_values
for value in cls.type_values:
- self.assertIsInstance(value, unicode)
+ self.assertIsInstance(value, str)
self.assertTrue("i" in cls.type_values)
self.assertTrue("d" in cls.type_values)