Commits

jason kirtland committed fb65496

Adjusted zoomark ranges for 2.4 and 2.5.

Comments (0)

Files changed (1)

test/profiling/zoomark.py

 
 
 class ZooMarkTest(testing.AssertMixin):
+    """Runs the ZooMark and squawks if method counts vary from the norm.
+
+    Each test has an associated `call_range`, the total number of accepted
+    function calls made during the test.  The count can vary between Python
+    2.4 and 2.5.
+    """
     
     @testing.supported('postgres')
     @profiling.profiled('create', call_range=(1610, 2000), always=True)        
         metadata.create_all()
         
     @testing.supported('postgres')
-    @profiling.profiled('populate', call_range=(4340, 4400), always=True)
+    @profiling.profiled('populate', call_range=(3580, 4400), always=True)
     def test_1a_populate(self):
         Zoo = metadata.tables['Zoo']
         Animal = metadata.tables['Animal']
                                 MotherID=bai_yun)
     
     @testing.supported('postgres')
-    @profiling.profiled('insert', call_range=(230, 250), always=True)
+    @profiling.profiled('insert', call_range=(195, 250), always=True)
     def test_2_insert(self):
         Animal = metadata.tables['Animal']
         i = Animal.insert()
             tick = i.execute(Species='Tick', Name='Tick %d' % x, Legs=8)
     
     @testing.supported('postgres')
-    @profiling.profiled('properties', call_range=(3420, 3430), always=True)
+    @profiling.profiled('properties', call_range=(3080, 3430), always=True)
     def test_3_properties(self):
         Zoo = metadata.tables['Zoo']
         Animal = metadata.tables['Animal']
             ticks = fullobject(Animal.select(Animal.c.Species=='Tick'))
     
     @testing.supported('postgres')
-    @profiling.profiled('expressions', call_range=(12570, 12580), always=True)
+    @profiling.profiled('expressions', call_range=(11600, 13200), always=True)
     def test_4_expressions(self):
         Zoo = metadata.tables['Zoo']
         Animal = metadata.tables['Animal']
             assert len(fulltable(Animal.select(func.date_part('day', Animal.c.LastEscape) == 21))) == 1
     
     @testing.supported('postgres')
-    @profiling.profiled('aggregates', call_range=(1220, 1230), always=True)
+    @profiling.profiled('aggregates', call_range=(1050, 1270), always=True)
     def test_5_aggregates(self):
         Animal = metadata.tables['Animal']
         Zoo = metadata.tables['Zoo']
             legs.sort()
     
     @testing.supported('postgres')
-    @profiling.profiled('editing', call_range=(1370, 1380), always=True)        
+    @profiling.profiled('editing', call_range=(1330, 1390), always=True)
     def test_6_editing(self):
         Zoo = metadata.tables['Zoo']
         
             assert SDZ['Founded'] == datetime.date(1935, 9, 13)
     
     @testing.supported('postgres')
-    @profiling.profiled('multiview', call_range=(3080, 3090), always=True)
+    @profiling.profiled('multiview', call_range=(2870, 3155), always=True)
     def test_7_multiview(self):
         Zoo = metadata.tables['Zoo']
         Animal = metadata.tables['Animal']
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.