File tree Expand file tree Collapse file tree
tests/python/tests/memory Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ def test_memory_usage(self):
2929 def test_total_memory_usage (self ):
3030 self ._template (
3131 "test_total_memory_usage" ,
32- expected_usage = (self .EXPECTED_LAST_ALLOCATION_SIZE << 1 ) - (self .PAGE_SIZE << 1 ),
33- expected_usage_after_cleaning = self .EXPECTED_LAST_ALLOCATION_SIZE - (self .PAGE_SIZE << 1 ),
34- expected_peak_usage = (self .EXPECTED_LAST_ALLOCATION_SIZE << 1 ) - (self .PAGE_SIZE << 1 ),
32+ expected_usage = (self .EXPECTED_LAST_ALLOCATION_SIZE << 1 ) - (self .PAGE_SIZE << 1 ), # 8192 + 16384 + ... + 2**20
33+ expected_usage_after_cleaning = self .EXPECTED_LAST_ALLOCATION_SIZE - (self .PAGE_SIZE << 1 ), # 8192 + 16384 + ... + 2**19
34+ expected_peak_usage = (self .EXPECTED_LAST_ALLOCATION_SIZE << 1 ) - (self .PAGE_SIZE << 1 ), # 8192 + 16384 + ... + 2**20
3535 )
You can’t perform that action at this time.
0 commit comments