Skip to content

Commit fb7b6f9

Browse files
author
Matt George
committed
change the result to cast to int
The newer version of redis-py no longer tries to extrapolate the type of a return value.
1 parent 56c0181 commit fb7b6f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_schedule.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def test_next_delayed_timestamp(self):
4545
key2 = int(time.mktime(d2.timetuple()))
4646
self.resq.enqueue_at(d, Basic,"test1")
4747
self.resq.enqueue_at(d2, Basic,"test1")
48-
item = self.resq.next_delayed_timestamp()
48+
int(item) = self.resq.next_delayed_timestamp()
4949
assert item == key2
5050

5151
def test_next_item_for_timestamp(self):

0 commit comments

Comments
 (0)