Clean up trailing whitespace.
This commit is contained in:
@@ -42,11 +42,11 @@ class GtkHandlerTest(unittest.TestCase):
|
||||
|
||||
rh = RotateHandler(capacity=20)
|
||||
rh.setLevel(logging.DEBUG)
|
||||
|
||||
|
||||
gtkh = GtkHandler(rotate_handler=rh)
|
||||
gtkh.setLevel(logging.ERROR)
|
||||
|
||||
l = logging.getLogger("GtkHandlerTest")
|
||||
l = logging.getLogger("GtkHandlerTest")
|
||||
l.setLevel(logging.DEBUG)
|
||||
|
||||
l.addHandler(rh)
|
||||
@@ -65,7 +65,7 @@ class GtkHandlerTest(unittest.TestCase):
|
||||
Gtk.main_iteration()
|
||||
|
||||
|
||||
|
||||
|
||||
def testSuite():
|
||||
suite = unittest.makeSuite(GtkHandlerTest,'test')
|
||||
return suite
|
||||
|
@@ -86,7 +86,7 @@ try:
|
||||
add_source( db,"A short test",True,False)
|
||||
print "Add person 3"
|
||||
add_person( db,"Chris","Connor",True,False)
|
||||
print_db_content( db)
|
||||
print_db_content( db)
|
||||
print "Closing Database file: %s" % filename1
|
||||
#db.close()
|
||||
|
||||
@@ -97,7 +97,7 @@ try:
|
||||
add_person( db,"Felix", "Fowler",True,False)
|
||||
print "Add person 4"
|
||||
add_person( db,"Felix", "Fowler",False,False)
|
||||
print_db_content( db)
|
||||
print_db_content( db)
|
||||
print "Closing Database file: %s" % filename1
|
||||
#db.close()
|
||||
|
||||
@@ -110,7 +110,7 @@ try:
|
||||
print "Add source 2 will fail"
|
||||
add_source( db,"Bang bang bang",True,True)
|
||||
|
||||
print_db_content( db)
|
||||
print_db_content( db)
|
||||
print "Closing Database file: %s" % filename2
|
||||
#db.close()
|
||||
finally:
|
||||
|
@@ -25,7 +25,7 @@ Testing framework for performing a variety of unttests for GRAMPS.
|
||||
"""
|
||||
|
||||
import logging
|
||||
|
||||
|
||||
import os
|
||||
import sys
|
||||
import unittest
|
||||
@@ -39,9 +39,9 @@ def make_parser():
|
||||
usage = "usage: %prog [options]"
|
||||
parser = OptionParser(usage)
|
||||
parser.add_option("-v", "--verbosity", type="int", dest="verbose_level", default=0,
|
||||
help="Level of verboseness")
|
||||
help="Level of verboseness")
|
||||
parser.add_option("-p", "--performance", action="store_true", dest="performance", default=False,
|
||||
help="Run the performance tests.")
|
||||
help="Run the performance tests.")
|
||||
return parser
|
||||
|
||||
|
||||
@@ -50,7 +50,7 @@ def getTestSuites():
|
||||
# It just walks the filetree from '.' downwards and returns
|
||||
# a tuple per directory of (dirpath,filelist) if the directory
|
||||
# contains any test files.
|
||||
|
||||
|
||||
paths = [(f[0],f[2]) for f in os.walk('.') \
|
||||
if len ([i for i in f[2] \
|
||||
if i[-8:] == "_Test.py"]) ]
|
||||
@@ -78,7 +78,7 @@ def allTheTests():
|
||||
|
||||
def perfTests():
|
||||
return unittest.TestSuite(getTestSuites()[1])
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
console = logging.StreamHandler()
|
||||
console.setLevel(logging.INFO)
|
||||
@@ -86,7 +86,7 @@ if __name__ == '__main__':
|
||||
|
||||
logger = logging.getLogger('Gramps')
|
||||
logger.addHandler(console)
|
||||
|
||||
|
||||
(options,args) = make_parser().parse_args()
|
||||
|
||||
if options.verbose_level == 1:
|
||||
|
Reference in New Issue
Block a user