test for config file not passed via command line

This commit is contained in:
Alan Hamlett 2015-09-26 19:10:12 -07:00
parent cde35d7ccd
commit f467336a8b
2 changed files with 21 additions and 1 deletions

View file

@ -117,7 +117,7 @@ def setup_logging(args, version):
logging.getLogger('py.warnings').addHandler(warnings_handler)
try:
logging.captureWarnings(True)
except AttributeError:
except AttributeError: # pragma: nocover
pass # Python >= 2.7 is needed to capture warnings
return logger