From 1eddfd07cad491ce8d216ee3fda72bdd9ecb9eae Mon Sep 17 00:00:00 2001 From: bd Date: Sun, 20 Jul 2025 13:43:17 -0600 Subject: Aergia.get_deepest_traceable_frame refactor, tests Generators and list comprehension gives correct but less ideal results, matching yappi. Can this be improved in the future? --- t/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 't/utils.py') diff --git a/t/utils.py b/t/utils.py index 5772fac..da9a9c1 100644 --- a/t/utils.py +++ b/t/utils.py @@ -23,7 +23,7 @@ class AergiaUnitTestCase(unittest.TestCase): def assertRoughlyEqual(self, v1, v2): a = abs(v1 - v2) - self.assertTrue(a <= 1, f'{v1} (expected) not roughly {v2} (actual)') + self.assertTrue(a <= 2, f'{v1} (expected) not roughly {v2} (actual)') def expected_samples(self, total_seconds): return (total_seconds / self.interval) -- cgit v1.2.3