From: Mike Bayer Date: Tue, 8 Aug 2017 21:24:23 +0000 (-0400) Subject: - dont print samples, this appears like it may be X-Git-Tag: origin~80 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=725298ea4bdd874990940ca93c406ccb533c732d;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git - dont print samples, this appears like it may be itself causing the memory leak in conjunction with pytest-xdist Change-Id: Ia8704e54186e6dd60ea0e32a246fcf1419686663 --- 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