Fix tests for unicode characters on Python 3.2
This commit is contained in:
parent
6c74d9236d
commit
3cb40dbea4
@ -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"))
|
||||
|
||||
Loading…
Reference in New Issue
Block a user