diff options
Diffstat (limited to 'meta/recipes-devtools/python/python3/0001-test_readline-skip-limited-history-test.patch')
| -rw-r--r-- | meta/recipes-devtools/python/python3/0001-test_readline-skip-limited-history-test.patch | 46 |
1 files changed, 0 insertions, 46 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 deleted file mode 100644 index a619d51c10..0000000000 --- a/meta/recipes-devtools/python/python3/0001-test_readline-skip-limited-history-test.patch +++ /dev/null | |||
| @@ -1,46 +0,0 @@ | |||
| 1 | From 1a0a145261ba4f97aaff3c0c656ac2e0ad9695a8 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Trevor Gamblin <tgamblin@baylibre.com> | ||
| 3 | Date: Tue, 13 Aug 2024 11:07:05 -0400 | ||
| 4 | Subject: [PATCH] test_readline: skip limited history test | ||
| 5 | |||
| 6 | This test was added recently and is failing on the ptest image when | ||
| 7 | using the default PACKAGECONFIG settings (i.e. with editline instead of | ||
| 8 | readline).. Disable it until the proper fix is determined. | ||
| 9 | |||
| 10 | A bug has been opened upstream: https://github.com/python/cpython/issues/123018 | ||
| 11 | |||
| 12 | Upstream-Status: Inappropriate [OE-specific] | ||
| 13 | |||
| 14 | Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com> | ||
| 15 | --- | ||
| 16 | Lib/test/test_readline.py | 3 +++ | ||
| 17 | 1 file changed, 3 insertions(+) | ||
| 18 | |||
| 19 | diff --git a/Lib/test/test_readline.py b/Lib/test/test_readline.py | ||
| 20 | index 537a9fb..ddf0323 100644 | ||
| 21 | --- a/Lib/test/test_readline.py | ||
| 22 | +++ b/Lib/test/test_readline.py | ||
| 23 | @@ -71,6 +71,7 @@ class TestHistoryManipulation (unittest.TestCase): | ||
| 24 | |||
| 25 | @unittest.skipUnless(hasattr(readline, "append_history_file"), | ||
| 26 | "append_history not available") | ||
| 27 | + @unittest.skip("Skipping problematic test") | ||
| 28 | def test_write_read_append(self): | ||
| 29 | hfile = tempfile.NamedTemporaryFile(delete=False) | ||
| 30 | hfile.close() | ||
| 31 | @@ -142,6 +143,7 @@ class TestHistoryManipulation (unittest.TestCase): | ||
| 32 | self.assertEqual(readline.get_history_item(1), "entrée 1") | ||
| 33 | self.assertEqual(readline.get_history_item(2), "entrée 22") | ||
| 34 | |||
| 35 | + @unittest.skip("Skipping problematic test") | ||
| 36 | def test_write_read_limited_history(self): | ||
| 37 | previous_length = readline.get_history_length() | ||
| 38 | self.addCleanup(readline.set_history_length, previous_length) | ||
| 39 | @@ -390,6 +392,7 @@ readline.write_history_file(history_file) | ||
| 40 | self.assertIn(b"done", output) | ||
| 41 | |||
| 42 | |||
| 43 | + @unittest.skip("Skipping problematic test") | ||
| 44 | def test_write_read_limited_history(self): | ||
| 45 | previous_length = readline.get_history_length() | ||
| 46 | self.addCleanup(readline.set_history_length, previous_length) | ||
