Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ dev = [
"pexpect",
"pre-commit",
"pytest",
"pytest-benchmark",
]
full = [
"ipywidgets",
Expand Down
11 changes: 11 additions & 0 deletions test/conftest.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Code that gets run before pytest runs..
import gc


def pytest_sessionfinish(session, exitstatus):
"""Executes after all tests have completed.

Freeze objects right before pytest exits. This prevents PyGC_Collect from
walking Generation 2 objects during _Py_Finalize.
"""
gc.freeze()
Loading