Django

Code

Changeset 7308

Show
Ignore:
Timestamp:
03/18/08 16:53:39 (4 months ago)
Author:
adrian
Message:

Changed pagination tests to suppress the DeprecationWarning?

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/tests/modeltests/pagination/models.py

    r7306 r7308  
    145145################################ 
    146146 
     147# Don't print out the deprecation warnings during testing. 
     148>>> from warnings import filterwarnings 
     149>>> filterwarnings("ignore") 
     150 
    147151>>> from django.core.paginator import ObjectPaginator, InvalidPage 
    148152>>> paginator = ObjectPaginator(Article.objects.all(), 5)