7197: better diagnostics from test for debugging
Use unittest -v/--verbose flag to trigger it.
This commit is contained in:
parent
bbd6cc87d5
commit
78cae43a32
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user