7197: better diagnostics from test for debugging

Use unittest -v/--verbose flag to trigger it.
This commit is contained in:
Vassilii Khachaturov 2013-11-13 16:59:26 +02:00
parent bbd6cc87d5
commit 78cae43a32

View File

@ -34,8 +34,16 @@ Based on the Check Localized Date Displayer and Parser tool.
# standard python modules
#
#-------------------------------------------------------------------------
from __future__ import unicode_literals, division
import unittest
import sys
if '-v' in sys.argv or '--verbose' in sys.argv:
import logging
logging.getLogger('').addHandler(logging.StreamHandler())
log = logging.getLogger(".Date")
log.setLevel(logging.DEBUG)
#-------------------------------------------------------------------------
#
# GRAMPS modules