summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxim Kurnikov <maxim.kurnikov@gmail.com>2019-09-25 10:15:18 +0300
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2019-09-25 09:15:18 +0200
commitff5dfbc63a278219cd929449678b99ebec9a4b5f (patch)
tree3c0fb0595f4b7809fbc222e40e286975dd681065
parent129583a0d3cf69b08d058cd751d777588801b7ad (diff)
Fixed false positive tests of Paginator.count property.
-rw-r--r--tests/pagination/tests.py4
1 files 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):
"""