diff options
| author | Mike Bayer <mike_mp@zzzcomputing.com> | 2017-08-08 17:24:23 -0400 |
|---|---|---|
| committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2017-08-08 17:24:23 -0400 |
| commit | 725298ea4bdd874990940ca93c406ccb533c732d (patch) | |
| tree | 4c5eb062c792bcc629e25cf0e448e43a316dbda9 /test/aaa_profiling | |
| parent | 0a23654649e9b121001b24213bfa946409774e55 (diff) | |
| download | sqlalchemy-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.py | 7 |
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 |
