summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/python
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2025-02-18 22:53:34 -0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2025-02-20 11:57:49 +0000
commitca289e5d853c5ef980ad070eab0d20f973fcdb7c (patch)
tree3eeffb721107cb8f9256c9b8512ef2fff85eef3e /meta/recipes-devtools/python
parent85efdf62783a4c72cbb8fdc4a1bf3f264a902c7c (diff)
downloadpoky-ca289e5d853c5ef980ad070eab0d20f973fcdb7c.tar.gz
python3: Skip test_write_read_append
We use editline by default and test_write_read_append also fails especially on musl since this needs to be fixed upstream, extend the skip for test_write_read_append along with other history manipulation tests being skipped. (From OE-Core rev: fbafd942e6c78d1298fa64129149ff311b61fcf8) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/python')
-rw-r--r--meta/recipes-devtools/python/python3/0001-test_readline-skip-limited-history-test.patch14
1 files changed, 10 insertions, 4 deletions
diff --git a/meta/recipes-devtools/python/python3/0001-test_readline-skip-limited-history-test.patch b/meta/recipes-devtools/python/python3/0001-test_readline-skip-limited-history-test.patch
index 337e69cce0..862a7f5ea7 100644
--- a/meta/recipes-devtools/python/python3/0001-test_readline-skip-limited-history-test.patch
+++ b/meta/recipes-devtools/python/python3/0001-test_readline-skip-limited-history-test.patch
@@ -16,11 +16,17 @@ Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
16 Lib/test/test_readline.py | 2 ++ 16 Lib/test/test_readline.py | 2 ++
17 1 file changed, 2 insertions(+) 17 1 file changed, 2 insertions(+)
18 18
19diff --git a/Lib/test/test_readline.py b/Lib/test/test_readline.py
20index 50e77cb..09b644a 100644
21--- a/Lib/test/test_readline.py 19--- a/Lib/test/test_readline.py
22+++ b/Lib/test/test_readline.py 20+++ b/Lib/test/test_readline.py
23@@ -141,6 +141,7 @@ class TestHistoryManipulation (unittest.TestCase): 21@@ -70,6 +70,7 @@ class TestHistoryManipulation (unittest.
22
23 @unittest.skipUnless(hasattr(readline, "append_history_file"),
24 "append_history not available")
25+ @unittest.skip("Skipping problematic test")
26 def test_write_read_append(self):
27 hfile = tempfile.NamedTemporaryFile(delete=False)
28 hfile.close()
29@@ -141,6 +142,7 @@ class TestHistoryManipulation (unittest.
24 self.assertEqual(readline.get_history_item(1), "entrée 1") 30 self.assertEqual(readline.get_history_item(1), "entrée 1")
25 self.assertEqual(readline.get_history_item(2), "entrée 22") 31 self.assertEqual(readline.get_history_item(2), "entrée 22")
26 32
@@ -28,7 +34,7 @@ index 50e77cb..09b644a 100644
28 def test_write_read_limited_history(self): 34 def test_write_read_limited_history(self):
29 previous_length = readline.get_history_length() 35 previous_length = readline.get_history_length()
30 self.addCleanup(readline.set_history_length, previous_length) 36 self.addCleanup(readline.set_history_length, previous_length)
31@@ -382,6 +383,7 @@ readline.write_history_file(history_file) 37@@ -382,6 +384,7 @@ readline.write_history_file(history_file
32 self.assertIn(b"done", output) 38 self.assertIn(b"done", output)
33 39
34 40