File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -63,7 +63,14 @@ def test_performance_100(self) -> None:
6363 self .get_success (
6464 phone_stats_home (self .hs , stats , past_stats ) # type: ignore[arg-type]
6565 )
66- self .assertApproximates (stats ["cpu_average" ], 100 , tolerance = 2.5 )
66+ # tolerance here started at 2.5. With Python 3.14 having a new measurement core
67+ # the number tested here is an order of magnitude larger than previous Python
68+ # versions. E.G.
69+ # Python 3.13: 100.41760000000295
70+ # Python 3.14: 103.63010000000088
71+ # Bump this tolerance number into a safe margin. Side note: the numbers above
72+ # were from a passing test, I can not reconcile this in the scope of 2.5
73+ self .assertApproximates (stats ["cpu_average" ], 100 , tolerance = 4.5 )
6774
6875
6976class CommonMetricsTestCase (HomeserverTestCase ):
You can’t perform that action at this time.
0 commit comments