fix confusing dup function name (fn -> fn3)

svn: r9618
This commit is contained in:
James G Sack 2007-12-29 03:00:46 +00:00
parent 7119ca1b61
commit 7216c72509
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2007-12-28 Jim Sack <jgsack@san.rr.com>
* src/gen/utils/test/callback_test.py: rename dup name (fn -> fn3)
The dup name was harmless but confusing, and a potential future
problem. Thanks to Raphael Ackermann for pointing this out.
2007-12-28 Benny Malengier <benny.malengier@gramps-project.org>
* src/ViewManager.py: remove unused functions, add alt actions left/right
* src/GrampsDb: deleted with _GrampsDbWriteXML.py,

View File

@ -227,9 +227,9 @@ class TestGrampsDBCallback(unittest.TestCase):
# This should fail because the type of arg1 is wrong
res=[]
def fn(s,r=res):
def fn3(s,r=res):
res.append(s)
t._warn = fn
t._warn = fn3
t.connect('test-lots',fn2), t.emit('test-lots',('a','a',[1,2],t,1.2))
assert res[0][0:6] == "Signal", "Type error not detected"