Patch person_rules_test.py

To remove hard coded build path from import. Fixes FTBFS due to test failure.
This commit is contained in:
Ross Gammon 2018-02-19 20:23:41 +01:00 committed by Nick Hall
parent dfe530fdd1
commit 2084bb5d0e
2 changed files with 25 additions and 0 deletions

View File

@ -0,0 +1,24 @@
Description: Remove hard coded build path from import
gramps/gen/filters/rules/test/person_rules_test.py contains an import
that hard codes the normal build path when working in the source tree.
This causes the test to fail when building the Debian package, which
happens out of the source tree.
This patch imports using .... instead of build/lib for the path for the
MatchIdOf function (the same as the other imports in the file).
Author: Ross Gammon <rossgammon@debian.org>
Forwarded: not-yet
Applied-Upstream: not-yet
Last-Update: 2018-02-19
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- gramps.orig/gramps/gen/filters/rules/test/person_rules_test.py
+++ gramps/gramps/gen/filters/rules/test/person_rules_test.py
@@ -17,7 +17,7 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#
-from build.lib.gramps.gen.filters.rules.person._matchidof import MatchIdOf
+from ....filters.rules.person._matchidof import MatchIdOf
"""
Unittest that tests person-specific filter rules

1
debian/patches/series vendored Normal file
View File

@ -0,0 +1 @@
hardcoded_path_person_rules_test.patch