From c7dc4d46259800d0f6f3b33cc13e768491837f34 Mon Sep 17 00:00:00 2001 From: antares Date: Sun, 12 May 2024 01:02:13 +0800 Subject: [PATCH] test: uncomment test code, skip ci --- test/fuzz_test.py | 38 +++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/test/fuzz_test.py b/test/fuzz_test.py index 9390a21..dcd8ad5 100644 --- a/test/fuzz_test.py +++ b/test/fuzz_test.py @@ -15,25 +15,25 @@ def _check_obj_same(self, a, b): def test_fuzz(self): from test_utils import tracemalloc_mem_check - # with self.subTest("fuzz loads"): - # tracemalloc_mem_check( - # self, - # datas=None, - # warm_up_repeat=100, - # test_repeat=1000, - # test_func=self._fuzz_loads, - # mem_diff_limit=100 - # ) - - # with self.subTest("fuzz dumps"): - # tracemalloc_mem_check( - # self, - # datas=None, - # warm_up_repeat=100, - # test_repeat=1000, - # test_func=self._fuzz_dumps, - # mem_diff_limit=100 - # ) + with self.subTest("fuzz loads"): + tracemalloc_mem_check( + self, + datas=None, + warm_up_repeat=100, + test_repeat=1000, + test_func=self._fuzz_loads, + mem_diff_limit=100 + ) + + with self.subTest("fuzz dumps"): + tracemalloc_mem_check( + self, + datas=None, + warm_up_repeat=100, + test_repeat=1000, + test_func=self._fuzz_dumps, + mem_diff_limit=100 + ) with self.subTest("fuzz order"): tracemalloc_mem_check(