ENH: Reimplement warning suppression of setup.py test --quiet

pull/183/head
Steven Hiscocks 12 years ago
parent 9d2d907fc1
commit 6f3c66f466

@ -39,7 +39,7 @@ except ImportError:
from distutils.command.build_py import build_py
from distutils.command.build_scripts import build_scripts
from os.path import isfile, join, isdir
import sys
import sys, warnings
from glob import glob
if setuptools and "test" in sys.argv:
@ -51,6 +51,8 @@ if setuptools and "test" in sys.argv:
logSys.addHandler(hdlr)
if set(["-q", "--quiet"]) & set(sys.argv):
logSys.setLevel(logging.FATAL)
warnings.simplefilter("ignore")
sys.warnoptions.append("ignore")
elif set(["-v", "--verbose"]) & set(sys.argv):
logSys.setLevel(logging.DEBUG)
else:

Loading…
Cancel
Save