mirror of
https://github.com/python/cpython.git
synced 2025-10-17 12:18:23 +00:00
The message "*** skipping leakage tests ***" was causing the test to
fail in a non-debug build. Only print this in verbose test mode.
This commit is contained in:
parent
0135b65c01
commit
e3d1df0646
1 changed files with 2 additions and 1 deletions
|
@ -6,6 +6,7 @@ import unittest
|
||||||
from StringIO import StringIO
|
from StringIO import StringIO
|
||||||
from csv import csv
|
from csv import csv
|
||||||
import gc
|
import gc
|
||||||
|
from test.test_support import verbose
|
||||||
|
|
||||||
class Test_Csv(unittest.TestCase):
|
class Test_Csv(unittest.TestCase):
|
||||||
"""
|
"""
|
||||||
|
@ -533,7 +534,7 @@ class TestDialectValidity(unittest.TestCase):
|
||||||
|
|
||||||
|
|
||||||
if not hasattr(sys, "gettotalrefcount"):
|
if not hasattr(sys, "gettotalrefcount"):
|
||||||
print "*** skipping leakage tests ***"
|
if verbose: print "*** skipping leakage tests ***"
|
||||||
else:
|
else:
|
||||||
class NUL:
|
class NUL:
|
||||||
def write(s, *args):
|
def write(s, *args):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue