From 725298ea4bdd874990940ca93c406ccb533c732d Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Tue, 8 Aug 2017 17:24:23 -0400 Subject: [PATCH] - dont print samples, this appears like it may be itself causing the memory leak in conjunction with pytest-xdist Change-Id: Ia8704e54186e6dd60ea0e32a246fcf1419686663 --- test/aaa_profiling/test_memusage.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/test/aaa_profiling/test_memusage.py b/test/aaa_profiling/test_memusage.py index 771f376fc0..dfb4a49553 100644 --- a/test/aaa_profiling/test_memusage.py +++ b/test/aaa_profiling/test_memusage.py @@ -70,7 +70,12 @@ def profile_memory(maxtimes=250, else len(get_objects_skipping_sqlite_issue()) ) - print("sample gc sizes:", samples) + # note: this prints lots of text, and when using pytest-xdist, + # actually interferes with memory itself from just sending + # the stdout between processes :). + # need to figure out a "condiional print" that doesn't send + # any stdout when we have pytest-xdist happening + # print("sample gc sizes:", samples) if assert_no_sessions: assert len(_sessions) == 0 -- 2.47.3