Changed pagination tests to suppress the DeprecationWarning
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7308 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
08d4910d69
commit
6c2a78b266
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue