summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrian Holovaty <adrian@holovaty.com>2008-03-18 21:53:39 +0000
committerAdrian Holovaty <adrian@holovaty.com>2008-03-18 21:53:39 +0000
commit6c2a78b26653739fe688dbf4d97b27aab1ebeca7 (patch)
treefeaa64bd47c99d365c9ff325b229627ece725092
parent08d4910d697d4fb8a199797e0938b0da653d3c3e (diff)
Changed pagination tests to suppress the DeprecationWarning
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7308 bcc190cf-cafb-0310-a4f2-bffc1f526a37
-rw-r--r--tests/modeltests/pagination/models.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/modeltests/pagination/models.py b/tests/modeltests/pagination/models.py
index ca03e38573..277c5961e3 100644
--- a/tests/modeltests/pagination/models.py
+++ b/tests/modeltests/pagination/models.py
@@ -144,6 +144,10 @@ True
# Legacy API (ObjectPaginator) #
################################
+# Don't print out the deprecation warnings during testing.
+>>> from warnings import filterwarnings
+>>> filterwarnings("ignore")
+
>>> from django.core.paginator import ObjectPaginator, InvalidPage
>>> paginator = ObjectPaginator(Article.objects.all(), 5)
>>> paginator.hits