From 5caccd96d8ed48a42954885ff6778f8c7ecb1811 Mon Sep 17 00:00:00 2001 From: Alex Roitman Date: Fri, 24 Nov 2006 05:39:14 +0000 Subject: [PATCH] * test/GrampsDb/GrampsDbBase_Test.py (test_reindex_reference_map): Properly define lambda to fake the _update_reference_map method. svn: r7678 --- gramps2/ChangeLog | 2 ++ gramps2/test/GrampsDb/GrampsDbBase_Test.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/gramps2/ChangeLog b/gramps2/ChangeLog index 81ab4cc71..80ed1cd7e 100644 --- a/gramps2/ChangeLog +++ b/gramps2/ChangeLog @@ -1,4 +1,6 @@ 2006-11-23 Alex Roitman + * test/GrampsDb/GrampsDbBase_Test.py (test_reindex_reference_map): + Properly define lambda to fake the _update_reference_map method. * test/GrampsDb/GrampsDbTestBase.py (tearDown): Close database at the end of test. diff --git a/gramps2/test/GrampsDb/GrampsDbBase_Test.py b/gramps2/test/GrampsDb/GrampsDbBase_Test.py index 660b9b782..252c399de 100644 --- a/gramps2/test/GrampsDb/GrampsDbBase_Test.py +++ b/gramps2/test/GrampsDb/GrampsDbBase_Test.py @@ -156,7 +156,7 @@ class ReferenceMapTest (GrampsDbBaseTest): # unhook the reference_map update function so that we # can insert some records without the reference_map being updated. update_method = self._db._update_reference_map - self._db._update_reference_map = lambda x: 1 + self._db._update_reference_map = lambda x,y: 1 # Insert a person/source pair. source = self._add_source()