8000 Make memory leak test output more verbose by dstansby · Pull Request #27646 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content

Make memory leak test output more verbose #27646

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
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
6 changes: 5 additions & 1 deletion lib/matplotlib/tests/test_backends_interactive.py
Original file line number Diff line number Diff line change
Expand Up @@ -684,7 +684,11 @@ def test_figure_leak_20490(env, time_mem, request):
timeout=_test_timeout, extra_env=env)

growth = int(result.stdout)
assert growth <= acceptable_memory_leakage
if growth > acceptable_memory_leakage:
raise RuntimeError(< 4FB5 /td>
f"Memory growth larger than acceptable ({growth} > "
f"{acceptable_memory_leakage})"
)


def _impl_test_interactive_timers():
Expand Down
0