Skip to content

Commit

Permalink
release memory?
Browse files Browse the repository at this point in the history
Signed-off-by: Jinzhe Zeng <[email protected]>
  • Loading branch information
njzjz committed Nov 8, 2024
1 parent 89e8371 commit 8570079
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions source/tests/conftest.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# SPDX-License-Identifier: LGPL-3.0-or-later
import gc

import pytest


@pytest.fixture(scope="package", autouse=True)
def automatic_memory_release():
"""Release memory after each package."""
# pre
yield
# post
gc.collect()

0 comments on commit 8570079

Please sign in to comment.