Fix test_exports to ignore changes in Gedcom Copyright year

This commit is contained in:
prculley 2017-01-01 09:16:20 -06:00 committed by Nick Hall
parent 2588e61a96
commit b06c101a8a

View File

@ -127,6 +127,9 @@ def gedfilt(line):
elif token == "FILE" and "tests" in line: elif token == "FILE" and "tests" in line:
# probably have a media with file name # probably have a media with file name
retval = False retval = False
elif token == "COPR" and "Copyright (c) " in line:
# probably have a copyright line with year
retval = False
else: # this is an addition else: # this is an addition
if token == "VERS" and gedfilt.prev[gedfilt.indx-1][0] == "VERS": if token == "VERS" and gedfilt.prev[gedfilt.indx-1][0] == "VERS":
# we must have a header with Gramps version # we must have a header with Gramps version
@ -145,6 +148,9 @@ def gedfilt(line):
elif token == "FILE" and "tests" in line: elif token == "FILE" and "tests" in line:
# probably have a media with file name # probably have a media with file name
retval = False retval = False
elif token == "COPR" and "Copyright (c) " in line:
# probably have a copyright line with year
retval = False
return retval return retval