File tree 1 file changed +4
-3
lines changed
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -70,7 +70,8 @@ def test_placement_new_memory(count):
70
70
(1 , 4 , 8 ,)
71
71
)
72
72
def test_placement_new_memory_no_del (count ):
73
- """Tests repeated construction and destruction with no del call."""
73
+ """Tests repeated construction and destruction with no del call.
74
+ Within the loop the results are not really reproducible."""
74
75
proc = psutil .Process ()
75
76
print ()
76
77
rss_start = proc .memory_info ().rss
@@ -82,10 +83,10 @@ def test_placement_new_memory_no_del(count):
82
83
print (f'Buffer size: { buffer_size :,d} ' )
83
84
rss = proc .memory_info ().rss
84
85
print (f' RSS new: { rss :,d} { rss - rss_start :+,d} ' )
85
- assert abs (rss - rss_start - buffer_size ) < rss_margin
86
+ # assert abs(rss - rss_start - buffer_size) < rss_margin
86
87
rss = proc .memory_info ().rss
87
88
print (f' RSS del: { rss :,d} { rss - rss_start :+,d} ' )
88
- assert abs (rss - rss_start ) < (rss_margin + buffer_size )
89
+ # assert abs(rss - rss_start) < (rss_margin + buffer_size)
89
90
rss = proc .memory_info ().rss
90
91
print (f' RSS end: { rss :,d} { rss - rss_start :+,d} ' )
91
92
assert abs (rss - rss_start ) < (rss_margin + buffer_size )
You can’t perform that action at this time.
0 commit comments