summaryrefslogtreecommitdiff
path: root/t/utils.py
diff options
context:
space:
mode:
authorbd <bdunahu@operationnull.com>2025-07-20 13:43:17 -0600
committerbd <bdunahu@operationnull.com>2025-07-20 13:43:17 -0600
commit1eddfd07cad491ce8d216ee3fda72bdd9ecb9eae (patch)
treeaccdf32e5696d1abe0e1916cffd8b22081b1409e /t/utils.py
parent2e208349d2e6f8f3d7fbbe853413549da9df0ce0 (diff)
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?
Diffstat (limited to 't/utils.py')
-rw-r--r--t/utils.py2
1 files changed, 1 insertions, 1 deletions
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)