]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
- dont print samples, this appears like it may be
authorMike Bayer <mike_mp@zzzcomputing.com>
Tue, 8 Aug 2017 21:24:23 +0000 (17:24 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Tue, 8 Aug 2017 21:24:23 +0000 (17:24 -0400)
itself causing the memory leak in conjunction with pytest-xdist

Change-Id: Ia8704e54186e6dd60ea0e32a246fcf1419686663

test/aaa_profiling/test_memusage.py

index 771f376fc03c233eaef5e78adbfcdf7dd24e012f..dfb4a495532e879add04adf4604277adb1e2b9b7 100644 (file)
@@ -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