From dbaa8b39e172a71b32758ab70fe3ee29e64b17fa Mon Sep 17 00:00:00 2001 From: Dylan Baker Date: Thu, 22 Feb 2018 14:50:50 -0800 Subject: tests/db/thread: Fix tests for py3k --- tests/db/thread_test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/db') diff --git a/tests/db/thread_test.py b/tests/db/thread_test.py index 678a5e59..8e4a5003 100644 --- a/tests/db/thread_test.py +++ b/tests/db/thread_test.py @@ -45,7 +45,7 @@ class TestThreadGetAuthor(unittest.TestCase): m.get_author = mock.Mock(return_value=a) get_messages.append(m) gm = mock.Mock() - gm.iterkeys = mock.Mock(return_value=get_messages) + gm.keys = mock.Mock(return_value=get_messages) cls.__patchers.extend([ mock.patch('alot.db.thread.Thread.get_messages', -- cgit v1.2.3