@@ -862,7 +862,10 @@ def test_get_stats(self):
862862 self .assertEqual (new [0 ]["collections" ], old [0 ]["collections" ] + 1 )
863863 self .assertEqual (new [1 ]["collections" ], old [1 ]["collections" ])
864864 self .assertEqual (new [2 ]["collections" ], old [2 ]["collections" ])
865- for stat in ["collected" , "uncollectable" , "duration" ]:
865+ self .assertGreater (new [0 ]["duration" ], old [0 ]["duration" ])
866+ self .assertEqual (new [1 ]["duration" ], old [1 ]["duration" ])
867+ self .assertEqual (new [2 ]["duration" ], old [2 ]["duration" ])
868+ for stat in ["collected" , "uncollectable" ]:
866869 self .assertGreaterEqual (new [0 ][stat ], old [0 ][stat ])
867870 self .assertEqual (new [1 ][stat ], old [1 ][stat ])
868871 self .assertEqual (new [2 ][stat ], old [2 ][stat ])
@@ -871,7 +874,10 @@ def test_get_stats(self):
871874 self .assertEqual (new [0 ]["collections" ], old [0 ]["collections" ])
872875 self .assertEqual (new [1 ]["collections" ], old [1 ]["collections" ])
873876 self .assertEqual (new [2 ]["collections" ], old [2 ]["collections" ] + 1 )
874- for stat in ["collected" , "uncollectable" , "duration" ]:
877+ self .assertEqual (new [0 ]["duration" ], old [0 ]["duration" ])
878+ self .assertEqual (new [1 ]["duration" ], old [1 ]["duration" ])
879+ self .assertGreater (new [2 ]["duration" ], old [2 ]["duration" ])
880+ for stat in ["collected" , "uncollectable" ]:
875881 self .assertEqual (new [0 ][stat ], old [0 ][stat ])
876882 self .assertEqual (new [1 ][stat ], old [1 ][stat ])
877883 self .assertGreaterEqual (new [2 ][stat ], old [2 ][stat ])
0 commit comments