summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_csv.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2003-03-21 01:15:58 (GMT)
committerGuido van Rossum <guido@python.org>2003-03-21 01:15:58 (GMT)
commite3d1df0646977d9576d4d760facd03285cb015b5 (patch)
treec545e35d2091cd5a55d7d2c6c74cbf6342167f59 /Lib/test/test_csv.py
parent0135b65c01ccfd065fe2f9753509014bf182258c (diff)
downloadcpython-e3d1df0646977d9576d4d760facd03285cb015b5.zip
cpython-e3d1df0646977d9576d4d760facd03285cb015b5.tar.gz
cpython-e3d1df0646977d9576d4d760facd03285cb015b5.tar.bz2
The message "*** skipping leakage tests ***" was causing the test to
fail in a non-debug build. Only print this in verbose test mode.
Diffstat (limited to 'Lib/test/test_csv.py')
-rw-r--r--Lib/test/test_csv.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/test/test_csv.py b/Lib/test/test_csv.py
index 64456db..be9726f 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):