We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I've isolated a minimum working example:
https://github.com/benjaminweb/redis_lua_bytes_bug
def test_set_get(redisdb): set_get = redis_lua.load_script('set_get', 'lua').get_runner(redisdb) data = dict(value='foo bar') result = set_get(**data) pyredis = redisdb.get('fancykey') expected = data['value'].encode('utf-8') assert pyredis == expected print(pyredis) > assert result == expected E assert "b'foo bar'" == b'foo bar'
return str(value.decode()) nor return value fixed it, though.
return str(value.decode())
return value
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I've isolated a minimum working example:
https://github.com/benjaminweb/redis_lua_bytes_bug
return str(value.decode())
norreturn value
fixed it, though.The text was updated successfully, but these errors were encountered: