summaryrefslogtreecommitdiff
path: root/tests/test_bcrypt.py
diff options
context:
space:
mode:
authorDonald Stufft <donald@stufft.io>2013-05-11 00:26:47 -0400
committerDonald Stufft <donald@stufft.io>2013-05-11 00:26:47 -0400
commit3cb40dbea4764bb929d3926f8649b7213bad8b40 (patch)
tree17b9754cbf23ac21f3c95b2bd9a4c842070b4ac1 /tests/test_bcrypt.py
parent6c74d9236d11cc146d82ee72cbebe65fcd03ca32 (diff)
downloadpy-bcrypt-git-3cb40dbea4764bb929d3926f8649b7213bad8b40.tar.gz
Fix tests for unicode characters on Python 3.2
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"))