Fix and enable test_util_test

This commit is contained in:
Doug Blank 2015-03-18 03:25:39 -04:00 committed by Ross Gammon
parent 28567ab58e
commit 6e38945ab1
2 changed files with 6 additions and 6 deletions

View File

@ -26,4 +26,4 @@ install:
script:
- mkdir -p /home/travis/.gramps/grampsdb/
- DJANGO_SETTINGS_MODULE=gramps.webapp.settings nosetests3 --exclude=TestcaseGenerator --exclude=exportvcard_test --exclude=vcard --exclude=merge_ref_test --exclude=test_util_test --exclude=test2_exec_CLI --exclude=test3_files_in_import_dir --exclude=test_manual_run gramps
- DJANGO_SETTINGS_MODULE=gramps.webapp.settings nosetests3 --exclude=TestcaseGenerator --exclude=exportvcard_test --exclude=vcard --exclude=merge_ref_test --exclude=test2_exec_CLI --exclude=test3_files_in_import_dir --exclude=test_manual_run gramps

View File

@ -53,10 +53,10 @@ usage_note="""
# **************************************************************
try:
from test import test_util as tu
from gramps.test import test_util as tu
##here = tu.absdir()
except ImportError:
print("Cannot import 'test_util'from package 'test'" + usage_note)
print("Cannot import 'test_util' from package 'test'" + usage_note)
exit(1)
@ -202,9 +202,9 @@ class Test4(U.TestCase):
logging.error(emsg)
ll = tl.logfile_getlines()
nl = len(ll)
self.assertEquals(nl,2,
tu.msg(nl,2, "pass %d: expected line count" % i))
del tl
self.assertEquals(nl,3,
tu.msg(nl,3, "pass %d: expected line count" % i))
#del tl
if __name__ == "__main__":