diff options
| author | Victor Stinner <vstinner@redhat.com> | 2018-11-23 19:00:16 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-11-23 19:00:16 +0100 |
| commit | eef813b1091f4baaaa7411aa58d2746a9761ee99 (patch) | |
| tree | 6a907478f0d4bd4cd306c9ac3ea84c96f3c9f686 /Python/formatter_unicode.c | |
| parent | 879f5f3d9c1f5b66e2a080c712e2323e9c03d558 (diff) | |
| download | cpython-git-eef813b1091f4baaaa7411aa58d2746a9761ee99.tar.gz | |
[3.7] bpo-35189: Retry fnctl calls on EINTR (GH-10413) (GH-10678) (GH-10685)
* bpo-35189: Fix eintr_tester.py (GH-10637)
Call setitimer() before each test method, instead of once per test
case, to ensure that signals are sent in each test method.
Previously, only the first method of a testcase class got signals.
Changes:
* Replace setUpClass() with setUp() and replace tearDownClass() with
tearDown().
* tearDown() now ensures that at least one signal has been sent.
* Replace support.run_unittest() with unittest.main() which has
a nicer CLI and automatically discover test cases.
(cherry picked from commit aac1f81eef971876ba5b1673db9ce6620311c469)
* bpo-35189: Retry fnctl calls on EINTR (GH-10413)
Modify the following fnctl function to retry if interrupted by a signal
(EINTR): flock, lockf, fnctl.
(cherry picked from commit b409ffa848b280c1db1b4f450bfae14f263099ac)
Co-Authored-By: nierob <nierob@users.noreply.github.com>
(cherry picked from commit 56742f1eb05401a27499af0ccdcb4e4214859fd1)
Diffstat (limited to 'Python/formatter_unicode.c')
0 files changed, 0 insertions, 0 deletions
