From 681996da3851840822f5e63e56e2b90f87ce7680 Mon Sep 17 00:00:00 2001 From: Samuele Maci Date: Sun, 6 Oct 2019 18:50:33 +0200 Subject: [PATCH] Add assertions around memory_diff in test_pybuffer_doesnot_leak_memory --- examples/rustapi_module/tests/test_buf_and_str.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/rustapi_module/tests/test_buf_and_str.py b/examples/rustapi_module/tests/test_buf_and_str.py index 94538865..b85ad59f 100644 --- a/examples/rustapi_module/tests/test_buf_and_str.py +++ b/examples/rustapi_module/tests/test_buf_and_str.py @@ -34,5 +34,5 @@ def test_pybuffer_doesnot_leak_memory(): for i in range(N): extractor.to_str(message_s) - memory_diff(to_vec) == 0 - memory_diff(to_str) == 0 + assert memory_diff(to_vec) == 0 + assert memory_diff(to_str) == 0