Skip to content

Commit e3d1df0

Browse files
committed
The message "*** skipping leakage tests ***" was causing the test to
fail in a non-debug build. Only print this in verbose test mode.
1 parent 0135b65 commit e3d1df0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Lib/test/test_csv.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
from StringIO import StringIO
77
from csv import csv
88
import gc
9+
from test.test_support import verbose
910

1011
class Test_Csv(unittest.TestCase):
1112
"""
@@ -533,7 +534,7 @@ class mydialect(csv.Dialect):
533534

534535

535536
if not hasattr(sys, "gettotalrefcount"):
536-
print "*** skipping leakage tests ***"
537+
if verbose: print "*** skipping leakage tests ***"
537538
else:
538539
class NUL:
539540
def write(s, *args):

0 commit comments

Comments
 (0)