From ff5dfbc63a278219cd929449678b99ebec9a4b5f Mon Sep 17 00:00:00 2001 From: Maxim Kurnikov Date: Wed, 25 Sep 2019 10:15:18 +0300 Subject: [PATCH] Fixed false positive tests of Paginator.count property. --- tests/pagination/tests.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/pagination/tests.py b/tests/pagination/tests.py index 0a807a66c3..ef6e355e8d 100644 --- a/tests/pagination/tests.py +++ b/tests/pagination/tests.py @@ -156,7 +156,7 @@ class PaginationTests(SimpleTestCase): raise AttributeError('abc') with self.assertRaisesMessage(AttributeError, 'abc'): - Paginator(AttributeErrorContainer(), 10).count() + Paginator(AttributeErrorContainer(), 10).count def test_count_does_not_silence_type_error(self): class TypeErrorContainer: @@ -164,7 +164,7 @@ class PaginationTests(SimpleTestCase): raise TypeError('abc') with self.assertRaisesMessage(TypeError, 'abc'): - Paginator(TypeErrorContainer(), 10).count() + Paginator(TypeErrorContainer(), 10).count def check_indexes(self, params, page_num, indexes): """