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 | 12 |
1 files changed, 7 insertions, 5 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 862a7f5ea7..a619d51c10 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 | |||
| @@ -13,12 +13,14 @@ Upstream-Status: Inappropriate [OE-specific] | |||
| 13 | 13 | ||
| 14 | Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com> | 14 | Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com> |
| 15 | --- | 15 | --- |
| 16 | Lib/test/test_readline.py | 2 ++ | 16 | Lib/test/test_readline.py | 3 +++ |
| 17 | 1 file changed, 2 insertions(+) | 17 | 1 file changed, 3 insertions(+) |
| 18 | 18 | ||
| 19 | diff --git a/Lib/test/test_readline.py b/Lib/test/test_readline.py | ||
| 20 | index 537a9fb..ddf0323 100644 | ||
| 19 | --- a/Lib/test/test_readline.py | 21 | --- a/Lib/test/test_readline.py |
| 20 | +++ b/Lib/test/test_readline.py | 22 | +++ b/Lib/test/test_readline.py |
| 21 | @@ -70,6 +70,7 @@ class TestHistoryManipulation (unittest. | 23 | @@ -71,6 +71,7 @@ class TestHistoryManipulation (unittest.TestCase): |
| 22 | 24 | ||
| 23 | @unittest.skipUnless(hasattr(readline, "append_history_file"), | 25 | @unittest.skipUnless(hasattr(readline, "append_history_file"), |
| 24 | "append_history not available") | 26 | "append_history not available") |
| @@ -26,7 +28,7 @@ Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com> | |||
| 26 | def test_write_read_append(self): | 28 | def test_write_read_append(self): |
| 27 | hfile = tempfile.NamedTemporaryFile(delete=False) | 29 | hfile = tempfile.NamedTemporaryFile(delete=False) |
| 28 | hfile.close() | 30 | hfile.close() |
| 29 | @@ -141,6 +142,7 @@ class TestHistoryManipulation (unittest. | 31 | @@ -142,6 +143,7 @@ class TestHistoryManipulation (unittest.TestCase): |
| 30 | self.assertEqual(readline.get_history_item(1), "entrée 1") | 32 | self.assertEqual(readline.get_history_item(1), "entrée 1") |
| 31 | self.assertEqual(readline.get_history_item(2), "entrée 22") | 33 | self.assertEqual(readline.get_history_item(2), "entrée 22") |
| 32 | 34 | ||
| @@ -34,7 +36,7 @@ Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com> | |||
| 34 | def test_write_read_limited_history(self): | 36 | def test_write_read_limited_history(self): |
| 35 | previous_length = readline.get_history_length() | 37 | previous_length = readline.get_history_length() |
| 36 | self.addCleanup(readline.set_history_length, previous_length) | 38 | self.addCleanup(readline.set_history_length, previous_length) |
| 37 | @@ -382,6 +384,7 @@ readline.write_history_file(history_file | 39 | @@ -390,6 +392,7 @@ readline.write_history_file(history_file) |
| 38 | self.assertIn(b"done", output) | 40 | self.assertIn(b"done", output) |
| 39 | 41 | ||
| 40 | 42 | ||
