Skip to content

fake_redis should raise a ResponseError when given a non-int value for "expire" #1046

Description

@wimkeir

There appears to be a behaviour mismatch between "real" Redis and fake_redis. When given a command like EXPIRE key 1.5, Redis raises a ResponseError, claiming that the value is not an int. fake_redis should also raise an error when expire() is passed a seconds parameter that is not an int. We should also include a test to assert that this error is raised.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions