@@ -2073,8 +2073,8 @@ def parse_output(self, output, expected):
20732073 # Check that no allocation occurs as estimate_memory should avoid data touch
20742074 assert "Allocating" not in output .text
20752075
2076- name , disk , host , device = output .records [- 1 ].message .split ()
2077- extracted = (name , int (disk ), int ( host ), int (device ))
2076+ name , host , device = output .records [- 1 ].message .split ()
2077+ extracted = (name , int (host ), int (device ))
20782078
20792079 assert extracted == expected
20802080
@@ -2093,7 +2093,7 @@ def test_basic_usage(self, caplog, shape, dtype, so):
20932093
20942094 # Check output of estimate_memory
20952095 host = reduce (mul , f .shape_allocated )* np .dtype (f .dtype ).itemsize
2096- expected = ("Kernel" , 0 , host , 0 )
2096+ expected = ("Kernel" , host , 0 )
20972097 self .parse_output (caplog , expected )
20982098
20992099 def test_multiple_objects (self , caplog ):
@@ -2107,7 +2107,7 @@ def test_multiple_objects(self, caplog):
21072107
21082108 check = sum (reduce (mul , func .shape_allocated )* np .dtype (func .dtype ).itemsize
21092109 for func in (f , g ))
2110- expected = ("Kernel" , 0 , check , 0 )
2110+ expected = ("Kernel" , check , 0 )
21112111 self .parse_output (caplog , expected )
21122112
21132113 @pytest .mark .parametrize ('time' , [True , False ])
@@ -2126,7 +2126,7 @@ def test_sparse(self, caplog, time):
21262126
21272127 check = sum (reduce (mul , func .shape_allocated )* np .dtype (func .dtype ).itemsize
21282128 for func in (f , src , src .coordinates ))
2129- expected = ("Kernel" , 0 , check , 0 )
2129+ expected = ("Kernel" , check , 0 )
21302130 self .parse_output (caplog , expected )
21312131
21322132 @pytest .mark .parametrize ('save' , [None , Buffer (3 ), 10 ])
@@ -2138,7 +2138,7 @@ def test_timefunction(self, caplog, save):
21382138 op = Operator (Eq (f , 1 ))
21392139 op .estimate_memory (human_readable = False )
21402140 check = reduce (mul , f .shape_allocated )* np .dtype (f .dtype ).itemsize
2141- expected = ("Kernel" , 0 , check , 0 )
2141+ expected = ("Kernel" , check , 0 )
21422142 self .parse_output (caplog , expected )
21432143
21442144 def test_mashup (self , caplog ):
@@ -2162,7 +2162,7 @@ def test_mashup(self, caplog):
21622162 check = sum (reduce (mul , func .shape_allocated )* np .dtype (func .dtype ).itemsize
21632163 for func in (f , g , src0 , src0 .coordinates ,
21642164 src1 , src1 .coordinates ))
2165- expected = ("Kernel" , 0 , check , 0 )
2165+ expected = ("Kernel" , check , 0 )
21662166 self .parse_output (caplog , expected )
21672167
21682168 def test_temp_array (self , caplog ):
@@ -2194,7 +2194,7 @@ def test_temp_array(self, caplog):
21942194 # Factor in the temp array
21952195 check += reduce (mul , b .shape_allocated )* np .dtype (a .dtype ).itemsize
21962196
2197- expected = ("Kernel" , 0 , check , 0 )
2197+ expected = ("Kernel" , check , 0 )
21982198 self .parse_output (caplog , expected )
21992199
22002200 def test_overrides (self , caplog ):
@@ -2226,7 +2226,7 @@ def test_overrides(self, caplog):
22262226 check = sum (reduce (mul , func .shape_allocated )* np .dtype (func .dtype ).itemsize
22272227 for func in (f1 , tf1 , s1 , s1 .coordinates , st1 , st1 .coordinates ))
22282228
2229- expected = ("Kernel" , 0 , check , 0 )
2229+ expected = ("Kernel" , check , 0 )
22302230 self .parse_output (caplog , expected )
22312231
22322232 def test_device (self , caplog ):
@@ -2249,5 +2249,5 @@ def test_device(self, caplog):
22492249 check = reduce (mul , f .shape_allocated )* np .dtype (f .dtype ).itemsize
22502250
22512251 # Matching memory allocated both on host and device for memmap
2252- expected = ("Kernel" , 0 , check , check )
2252+ expected = ("Kernel" , check , check )
22532253 self .parse_output (caplog , expected )
0 commit comments