]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
The message "*** skipping leakage tests ***" was causing the test to
authorGuido van Rossum <guido@python.org>
Fri, 21 Mar 2003 01:15:58 +0000 (01:15 +0000)
committerGuido van Rossum <guido@python.org>
Fri, 21 Mar 2003 01:15:58 +0000 (01:15 +0000)
fail in a non-debug build.  Only print this in verbose test mode.

Lib/test/test_csv.py

index 64456db482fbba47f9634aa767043c1685d62480..be9726fe7d426053c52250b2997cb20558896047 100644 (file)
@@ -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):