From: Guido van Rossum Date: Fri, 21 Mar 2003 01:15:58 +0000 (+0000) Subject: The message "*** skipping leakage tests ***" was causing the test to X-Git-Tag: v2.3c1~1419 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e3d1df0646977d9576d4d760facd03285cb015b5;p=thirdparty%2FPython%2Fcpython.git The message "*** skipping leakage tests ***" was causing the test to fail in a non-debug build. Only print this in verbose test mode. --- diff --git a/Lib/test/test_csv.py b/Lib/test/test_csv.py index 64456db482fb..be9726fe7d42 100644 --- a/Lib/test/test_csv.py +++ b/Lib/test/test_csv.py @@ -6,6 +6,7 @@ import unittest from StringIO import StringIO from csv import csv import gc +from test.test_support import verbose class Test_Csv(unittest.TestCase): """ @@ -533,7 +534,7 @@ class TestDialectValidity(unittest.TestCase): if not hasattr(sys, "gettotalrefcount"): - print "*** skipping leakage tests ***" + if verbose: print "*** skipping leakage tests ***" else: class NUL: def write(s, *args):