diff mbox series

[2/2] python3: Skip test_write_read_append

Message ID 20250219065335.1632645-2-raj.khem@gmail.com
State Accepted, archived
Commit fbafd942e6c78d1298fa64129149ff311b61fcf8
Headers show
Series [1/2] python3: Ignore locale2 tests on musl | expand

Commit Message

Khem Raj Feb. 19, 2025, 6:53 a.m. UTC
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.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
 ...1-test_readline-skip-limited-history-test.patch | 14 ++++++++++----
 1 file changed, 10 insertions(+), 4 deletions(-)
diff mbox series

Patch

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 337e69cce07..862a7f5ea77 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>
  Lib/test/test_readline.py | 2 ++
  1 file changed, 2 insertions(+)
 
-diff --git a/Lib/test/test_readline.py b/Lib/test/test_readline.py
-index 50e77cb..09b644a 100644
 --- a/Lib/test/test_readline.py
 +++ b/Lib/test/test_readline.py
-@@ -141,6 +141,7 @@ class TestHistoryManipulation (unittest.TestCase):
+@@ -70,6 +70,7 @@ class TestHistoryManipulation (unittest.
+ 
+     @unittest.skipUnless(hasattr(readline, "append_history_file"),
+                          "append_history not available")
++    @unittest.skip("Skipping problematic test")
+     def test_write_read_append(self):
+         hfile = tempfile.NamedTemporaryFile(delete=False)
+         hfile.close()
+@@ -141,6 +142,7 @@ class TestHistoryManipulation (unittest.
          self.assertEqual(readline.get_history_item(1), "entrée 1")
          self.assertEqual(readline.get_history_item(2), "entrée 22")
  
@@ -28,7 +34,7 @@  index 50e77cb..09b644a 100644
      def test_write_read_limited_history(self):
          previous_length = readline.get_history_length()
          self.addCleanup(readline.set_history_length, previous_length)
-@@ -382,6 +383,7 @@ readline.write_history_file(history_file)
+@@ -382,6 +384,7 @@ readline.write_history_file(history_file
          self.assertIn(b"done", output)