Django

Code

Changeset 7572

Show
Ignore:
Timestamp:
06/04/08 12:25:55 (6 months ago)
Author:
jbronn
Message:

gis: Disabled query counting test in relatedapp because of its brittleness (number of queries may depend on external factors).

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/branches/gis/django/contrib/gis/tests/relatedapp/tests.py

    r7512 r7572  
    5050 
    5151        # Turning on debug so we can manually verify the number of SQL queries issued. 
    52         dbg = settings.DEBUG 
    53         settings.DEBUG = True 
     52        # DISABLED: the number of queries count testing mechanism is way too brittle. 
     53        #dbg = settings.DEBUG 
     54        #settings.DEBUG = True 
    5455        from django.db import connection 
    5556 
     
    6465            qs = list(City.objects.filter(name=name).transform('location__point', srid)) 
    6566            check_pnt(GEOSGeometry(wkt), qs[0].location.point)  
    66         settings.DEBUG= dbg 
     67        #settings.DEBUG= dbg 
    6768 
    6869        # Verifying the number of issued SQL queries. 
    69         self.assertEqual(nqueries, len(connection.queries)) 
     70        #self.assertEqual(nqueries, len(connection.queries)) 
    7071 
    7172def suite():