New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
test_signal: test_stress_modifying_handlers() failed on s390x SLES 3.x #110647
Labels
tests
Tests in the Lib/test dir
Comments
Change to make the error more likely: diff --git a/Lib/test/test_signal.py b/Lib/test/test_signal.py
index 2a1a1ee22f..d7017c3281 100644
--- a/Lib/test/test_signal.py
+++ b/Lib/test/test_signal.py
@@ -1339,8 +1339,8 @@ def set_interrupts():
num_sent_signals += 1
def cycle_handlers():
- while num_sent_signals < 100:
- for i in range(20000):
+ while num_sent_signals < 10:
+ for i in range(2000):
# Cycle between a Python-defined and a non-Python handler
for handler in [custom_handler, signal.SIG_IGN]:
signal.signal(signum, handler) |
vstinner
added a commit
to vstinner/cpython
that referenced
this issue
Oct 10, 2023
* cycle_handlers() now waits until at least one signal was received. * num_received_signals can be equal to num_sent_signals.
vstinner
added a commit
to vstinner/cpython
that referenced
this issue
Oct 10, 2023
* cycle_handlers() now waits until at least one signal was received. * num_received_signals can be equal to num_sent_signals.
vstinner
added a commit
to vstinner/cpython
that referenced
this issue
Oct 10, 2023
* cycle_handlers() now waits until at least one signal is received. * num_received_signals can be equal to num_sent_signals.
vstinner
added a commit
that referenced
this issue
Oct 10, 2023
* cycle_handlers() now waits until at least one signal is received. * num_received_signals can be equal to num_sent_signals.
This was referenced Oct 10, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
See also:
s390x SLES 3.x:
Test pass when re-run in verbose mode.
build: https://buildbot.python.org/all/#/builders/540/builds/6801
Linked PRs
The text was updated successfully, but these errors were encountered: