diff options
author | Trevor Gamblin <tgamblin@baylibre.com> | 2023-09-15 11:21:46 -0400 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-09-20 08:57:26 +0100 |
commit | bcc187a9009235fac19d2c09e04f74500467bc4b (patch) | |
tree | 4ed92422b864ddf7ccf113f75be834bdabc4772f | |
parent | 2d44fd92e8025a9ad634c618341a84257d89b718 (diff) | |
download | poky-bcc187a9009235fac19d2c09e04f74500467bc4b.tar.gz |
python3-ptest: skip test_input_no_stdout_fileno
[YOCTO #15210]
test_input_no_stdout_fileno has been seen failing on AB workers under
heavy load. Skip it while leaving the rest of the test_builtin suite
alone.
(From OE-Core rev: cf8927737690bf21dd3fb57474e09b71078e354c)
Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/recipes-devtools/python/python3/0001-skip-no_stdout_fileno-test-due-to-load-variability.patch | 32 | ||||
-rw-r--r-- | meta/recipes-devtools/python/python3_3.11.5.bb | 1 |
2 files changed, 33 insertions, 0 deletions
diff --git a/meta/recipes-devtools/python/python3/0001-skip-no_stdout_fileno-test-due-to-load-variability.patch b/meta/recipes-devtools/python/python3/0001-skip-no_stdout_fileno-test-due-to-load-variability.patch new file mode 100644 index 0000000000..ff695a4091 --- /dev/null +++ b/meta/recipes-devtools/python/python3/0001-skip-no_stdout_fileno-test-due-to-load-variability.patch | |||
@@ -0,0 +1,32 @@ | |||
1 | From 564d8f117fec7e573cbc10323655acefb12d143f Mon Sep 17 00:00:00 2001 | ||
2 | From: Trevor Gamblin <tgamblin@baylibre.com> | ||
3 | Date: Fri, 15 Sep 2023 08:48:33 -0400 | ||
4 | Subject: [PATCH] skip no_stdout_fileno test due to load variability | ||
5 | |||
6 | Skip test_input_no_stdout_fileno so that it doesn't fail on systems | ||
7 | under heavy load. | ||
8 | |||
9 | Upstream-Status: Inappropriate [OE-Specific] | ||
10 | |||
11 | [YOCTO #15210] | ||
12 | |||
13 | Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com> | ||
14 | --- | ||
15 | Lib/test/test_builtin.py | 1 + | ||
16 | 1 file changed, 1 insertion(+) | ||
17 | |||
18 | diff --git a/Lib/test/test_builtin.py b/Lib/test/test_builtin.py | ||
19 | index 9078c409cc..615955c057 100644 | ||
20 | --- a/Lib/test/test_builtin.py | ||
21 | +++ b/Lib/test/test_builtin.py | ||
22 | @@ -2247,6 +2247,7 @@ def test_input_tty_non_ascii_unicode_errors(self): | ||
23 | # Check stdin/stdout error handler is used when invoking PyOS_Readline() | ||
24 | self.check_input_tty("prompté", b"quux\xe9", "ascii") | ||
25 | |||
26 | + @unittest.skip("Test may fail under heavy load") | ||
27 | def test_input_no_stdout_fileno(self): | ||
28 | # Issue #24402: If stdin is the original terminal but stdout.fileno() | ||
29 | # fails, do not use the original stdout file descriptor | ||
30 | -- | ||
31 | 2.41.0 | ||
32 | |||
diff --git a/meta/recipes-devtools/python/python3_3.11.5.bb b/meta/recipes-devtools/python/python3_3.11.5.bb index f5d97311d7..6c624c9d3d 100644 --- a/meta/recipes-devtools/python/python3_3.11.5.bb +++ b/meta/recipes-devtools/python/python3_3.11.5.bb | |||
@@ -32,6 +32,7 @@ SRC_URI = "http://www.python.org/ftp/python/${PV}/Python-${PV}.tar.xz \ | |||
32 | file://deterministic_imports.patch \ | 32 | file://deterministic_imports.patch \ |
33 | file://0001-Avoid-shebang-overflow-on-python-config.py.patch \ | 33 | file://0001-Avoid-shebang-overflow-on-python-config.py.patch \ |
34 | file://0001-Update-test_sysconfig-for-posix_user-purelib.patch \ | 34 | file://0001-Update-test_sysconfig-for-posix_user-purelib.patch \ |
35 | file://0001-skip-no_stdout_fileno-test-due-to-load-variability.patch \ | ||
35 | " | 36 | " |
36 | 37 | ||
37 | SRC_URI:append:class-native = " \ | 38 | SRC_URI:append:class-native = " \ |