summaryrefslogtreecommitdiffstats
path: root/meta-python
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2024-04-04 18:00:12 -0700
committerKhem Raj <raj.khem@gmail.com>2024-04-07 08:36:34 -0700
commit38e2f6a9a94463916d2c4ea5d08f1a554e337f28 (patch)
tree86bcdfddef25d60e636971246180c85855a7ae3a /meta-python
parent806f7c44a31033cb84e9bc4f66a898089eb851a6 (diff)
downloadmeta-openembedded-38e2f6a9a94463916d2c4ea5d08f1a554e337f28.tar.gz
python3-whoosh: Fix an intermittent ptest
It fails sometimes when system is under stress Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-python')
-rw-r--r--meta-python/recipes-devtools/python/python3-whoosh/0001-Mark-non-determinstic-test_minimize_dfa-test-as-XFAI.patch29
-rw-r--r--meta-python/recipes-devtools/python/python3-whoosh_2.7.4.bb2
2 files changed, 31 insertions, 0 deletions
diff --git a/meta-python/recipes-devtools/python/python3-whoosh/0001-Mark-non-determinstic-test_minimize_dfa-test-as-XFAI.patch b/meta-python/recipes-devtools/python/python3-whoosh/0001-Mark-non-determinstic-test_minimize_dfa-test-as-XFAI.patch
new file mode 100644
index 0000000000..91fea24524
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-whoosh/0001-Mark-non-determinstic-test_minimize_dfa-test-as-XFAI.patch
@@ -0,0 +1,29 @@
1From ede95a4f4487b4fc3cad8452ae388376966fca0e Mon Sep 17 00:00:00 2001
2From: Chris Lamb <lamby@debian.org>
3Date: Fri, 5 Apr 2019 15:48:23 +0200
4Subject: [PATCH] Mark non-determinstic test_minimize_dfa test as XFAIL
5
6Sourced from Debian [1]
7[1] https://sources.debian.org/src/python-whoosh/2.7.4%2Bgit6-g9134ad92-8/debian/patches/0003-Mark-non-determinstic-test_minimize_dfa-test-as-XFAI.patch/
8
9Upstream-Status: Pending
10Signed-off-by: Khem Raj <raj.khem@gmail.com>
11---
12 tests/test_automata.py | 1 +
13 1 file changed, 1 insertion(+)
14
15diff --git a/tests/test_automata.py b/tests/test_automata.py
16index daab96c..7031dc3 100644
17--- a/tests/test_automata.py
18+++ b/tests/test_automata.py
19@@ -327,6 +327,7 @@ def test_regular():
20 assert not ex.accept("bc")
21
22
23+@pytest.mark.xfail(strict=False)
24 def test_minimize_dfa():
25 # Example from www.cs.odu.edu/~toida/nerzic/390teched/regular/fa/min-fa.html
26
27--
282.44.0
29
diff --git a/meta-python/recipes-devtools/python/python3-whoosh_2.7.4.bb b/meta-python/recipes-devtools/python/python3-whoosh_2.7.4.bb
index 38d3e1cecd..406de2e525 100644
--- a/meta-python/recipes-devtools/python/python3-whoosh_2.7.4.bb
+++ b/meta-python/recipes-devtools/python/python3-whoosh_2.7.4.bb
@@ -7,6 +7,8 @@ Whoosh works can be extended or replaced to meet your needs exactly."
7LICENSE = "BSD-2-Clause" 7LICENSE = "BSD-2-Clause"
8LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=05303186defc6141143629961c7c8a60" 8LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=05303186defc6141143629961c7c8a60"
9 9
10SRC_URI += "file://0001-Mark-non-determinstic-test_minimize_dfa-test-as-XFAI.patch"
11
10SRC_URI[md5sum] = "893433e9c0525ac043df33e6e04caab2" 12SRC_URI[md5sum] = "893433e9c0525ac043df33e6e04caab2"
11SRC_URI[sha256sum] = "e0857375f63e9041e03fedd5b7541f97cf78917ac1b6b06c1fcc9b45375dda69" 13SRC_URI[sha256sum] = "e0857375f63e9041e03fedd5b7541f97cf78917ac1b6b06c1fcc9b45375dda69"
12 14