summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/libxml/libxml2/0001-Make-ptest-run-the-python-tests-if-python-is-enabled.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-core/libxml/libxml2/0001-Make-ptest-run-the-python-tests-if-python-is-enabled.patch')
-rw-r--r--meta/recipes-core/libxml/libxml2/0001-Make-ptest-run-the-python-tests-if-python-is-enabled.patch34
1 files changed, 11 insertions, 23 deletions
diff --git a/meta/recipes-core/libxml/libxml2/0001-Make-ptest-run-the-python-tests-if-python-is-enabled.patch b/meta/recipes-core/libxml/libxml2/0001-Make-ptest-run-the-python-tests-if-python-is-enabled.patch
index 5e9a0a506b..6d9ede6194 100644
--- a/meta/recipes-core/libxml/libxml2/0001-Make-ptest-run-the-python-tests-if-python-is-enabled.patch
+++ b/meta/recipes-core/libxml/libxml2/0001-Make-ptest-run-the-python-tests-if-python-is-enabled.patch
@@ -1,4 +1,4 @@
1From 2b5fb416aa275fd2a17a0139a2f783998bcb42cc Mon Sep 17 00:00:00 2001 1From ea1993d1d9a18c5e61b9cb271892b0a48f508d32 Mon Sep 17 00:00:00 2001
2From: Peter Kjellerstedt <pkj@axis.com> 2From: Peter Kjellerstedt <pkj@axis.com>
3Date: Fri, 9 Jun 2017 17:50:46 +0200 3Date: Fri, 9 Jun 2017 17:50:46 +0200
4Subject: [PATCH] Make ptest run the python tests if python is enabled 4Subject: [PATCH] Make ptest run the python tests if python is enabled
@@ -8,16 +8,14 @@ be due to the fact that the tests are forced to run with Python 3.
8 8
9Upstream-Status: Inappropriate [OE specific] 9Upstream-Status: Inappropriate [OE specific]
10Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com> 10Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
11
12--- 11---
13 Makefile.am | 2 +- 12 Makefile.am | 2 +-
14 python/Makefile.am | 9 +++++++++ 13 python/Makefile.am | 9 +++++++++
15 python/tests/Makefile.am | 10 ++++++++++ 14 python/tests/Makefile.am | 10 ++++++++++
16 python/tests/tstLastError.py | 2 +- 15 3 files changed, 20 insertions(+), 1 deletion(-)
17 4 files changed, 21 insertions(+), 2 deletions(-)
18 16
19diff --git a/Makefile.am b/Makefile.am 17diff --git a/Makefile.am b/Makefile.am
20index ae62274..bd1e425 100644 18index b428452b..dc18d6dd 100644
21--- a/Makefile.am 19--- a/Makefile.am
22+++ b/Makefile.am 20+++ b/Makefile.am
23@@ -203,9 +203,9 @@ install-ptest: 21@@ -203,9 +203,9 @@ install-ptest:
@@ -32,7 +30,7 @@ index ae62274..bd1e425 100644
32 runtests: runtest$(EXEEXT) testrecurse$(EXEEXT) testapi$(EXEEXT) \ 30 runtests: runtest$(EXEEXT) testrecurse$(EXEEXT) testapi$(EXEEXT) \
33 testchar$(EXEEXT) testdict$(EXEEXT) runxmlconf$(EXEEXT) 31 testchar$(EXEEXT) testdict$(EXEEXT) runxmlconf$(EXEEXT)
34diff --git a/python/Makefile.am b/python/Makefile.am 32diff --git a/python/Makefile.am b/python/Makefile.am
35index 34aed96..ba3ec6a 100644 33index 34aed96c..ba3ec6a4 100644
36--- a/python/Makefile.am 34--- a/python/Makefile.am
37+++ b/python/Makefile.am 35+++ b/python/Makefile.am
38@@ -48,7 +48,16 @@ GENERATED = libxml2class.py libxml2class.txt $(BUILT_SOURCES) 36@@ -48,7 +48,16 @@ GENERATED = libxml2class.py libxml2class.txt $(BUILT_SOURCES)
@@ -53,7 +51,7 @@ index 34aed96..ba3ec6a 100644
53 tests test: all 51 tests test: all
54 cd tests && $(MAKE) tests 52 cd tests && $(MAKE) tests
55diff --git a/python/tests/Makefile.am b/python/tests/Makefile.am 53diff --git a/python/tests/Makefile.am b/python/tests/Makefile.am
56index 227e24d..021bb29 100644 54index 227e24df..3568c2d2 100644
57--- a/python/tests/Makefile.am 55--- a/python/tests/Makefile.am
58+++ b/python/tests/Makefile.am 56+++ b/python/tests/Makefile.am
59@@ -59,6 +59,11 @@ XMLS= \ 57@@ -59,6 +59,11 @@ XMLS= \
@@ -83,16 +81,6 @@ index 227e24d..021bb29 100644
83+ 81+
84 tests: 82 tests:
85 endif 83 endif
86diff --git a/python/tests/tstLastError.py b/python/tests/tstLastError.py 84--
87index 81d0acc..162c8db 100755 852.25.1
88--- a/python/tests/tstLastError.py 86
89+++ b/python/tests/tstLastError.py
90@@ -25,7 +25,7 @@ class TestCase(unittest.TestCase):
91 when the exception is raised, check the libxml2.lastError for
92 expected values."""
93 # disable the default error handler
94- libxml2.registerErrorHandler(None,None)
95+ libxml2.registerErrorHandler(lambda ctx,str: None,None)
96 try:
97 f(*args)
98 except exc: