summaryrefslogtreecommitdiff
path: root/test/aaa_profiling
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2017-08-08 17:24:23 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2017-08-08 17:24:23 -0400
commit725298ea4bdd874990940ca93c406ccb533c732d (patch)
tree4c5eb062c792bcc629e25cf0e448e43a316dbda9 /test/aaa_profiling
parent0a23654649e9b121001b24213bfa946409774e55 (diff)
downloadsqlalchemy-725298ea4bdd874990940ca93c406ccb533c732d.tar.gz
- dont print samples, this appears like it may be
itself causing the memory leak in conjunction with pytest-xdist Change-Id: Ia8704e54186e6dd60ea0e32a246fcf1419686663
Diffstat (limited to 'test/aaa_profiling')
-rw-r--r--test/aaa_profiling/test_memusage.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/test/aaa_profiling/test_memusage.py b/test/aaa_profiling/test_memusage.py
index 771f376fc..dfb4a4955 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