Skip to content

Commit 2a5b7b6

Browse files
committed
Fix tests on py2
1 parent eabde10 commit 2a5b7b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_passport.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ def test_bot_init_no_crypto(self, monkeypatch, bot):
169169

170170
def test_bot_init_invalid_key(self, bot):
171171
with pytest.raises(TypeError):
172-
Bot(bot.token, private_key='Invalid key!')
172+
Bot(bot.token, private_key=u'Invalid key!')
173173

174174
with pytest.raises(ValueError):
175175
Bot(bot.token, private_key=b'Invalid key!')

0 commit comments

Comments
 (0)