Skip to content

Commit 45e6987

Browse files
committed
tests: Fix oversight in basic test
1 parent fc02c48 commit 45e6987

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_operator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2083,7 +2083,7 @@ def test_basic_usage(self, caplog, shape, dtype, so):
20832083
op.estimate_memory(human_readable=False)
20842084

20852085
# Check output of estimate_memory
2086-
host = reduce(mul, [s + 2*so for s in shape])*np.dtype(dtype).itemsize
2086+
host = reduce(mul, f.shape_allocated)*np.dtype(f.dtype).itemsize
20872087
expected = ("Kernel", 0, host, 0)
20882088
self.parse_output(caplog, expected)
20892089

0 commit comments

Comments
 (0)