From cb87dbc81273a6834f0b6ef71258201bafa2200a Mon Sep 17 00:00:00 2001 From: Stainless Bot Date: Fri, 22 Dec 2023 03:47:42 +0000 Subject: [PATCH] test: run the garbage collector less often --- tests/test_client.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_client.py b/tests/test_client.py index b2d64aee..02b09aaf 100644 --- a/tests/test_client.py +++ b/tests/test_client.py @@ -194,8 +194,8 @@ def build_request(options: FinalRequestOptions) -> None: ITERATIONS = 10 for _ in range(ITERATIONS): build_request(options) - gc.collect() + gc.collect() snapshot_after = tracemalloc.take_snapshot() tracemalloc.stop() @@ -929,8 +929,8 @@ def build_request(options: FinalRequestOptions) -> None: ITERATIONS = 10 for _ in range(ITERATIONS): build_request(options) - gc.collect() + gc.collect() snapshot_after = tracemalloc.take_snapshot() tracemalloc.stop()