summaryrefslogtreecommitdiff
path: root/tests/test_bcrypt.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_bcrypt.py')
-rw-r--r--tests/test_bcrypt.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_bcrypt.py b/tests/test_bcrypt.py
index 41f5884..920facf 100644
--- a/tests/test_bcrypt.py
+++ b/tests/test_bcrypt.py
@@ -109,9 +109,9 @@ def test_hashpw_invalid():
def test_hashpw_str_password():
with pytest.raises(TypeError):
- bcrypt.hashpw(u"password", b"$2a$04$cVWp4XaNU8a4v1uMRum2SO")
+ bcrypt.hashpw(bcrypt.text_type("password"), b"$2a$04$cVWp4XaNU8a4v1uMRum2SO")
def test_hashpw_str_salt():
with pytest.raises(TypeError):
- bcrypt.hashpw(b"password", u"$2a$04$cVWp4XaNU8a4v1uMRum2SO")
+ bcrypt.hashpw(b"password", bcrypt.text_type("$2a$04$cVWp4XaNU8a4v1uMRum2SO"))