Files
cpython/Lib
Victor Stinner 8d64248c69 Issue #12363: improve siginterrupt() tests
Backport commits 968b9ff9a059 and aff0a7b0cb12 from the default branch to 3.2
branch. Extract of the changelog messages:

"The previous tests used time.sleep() to synchronize two processes. If the host
was too slow, the test could fail.

The new tests only use one process, but they use a subprocess to:

- have only one thread
- have a timeout on the blocking read (select cannot be used in the test,
select always fail with EINTR, the kernel doesn't restart it)
- not touch signal handling of the parent process"

and

"Add a basic synchronization code between the child and the parent processes:
the child writes "ready" to stdout."

I replaced .communicate(timeout=3.0) by an explicit waiting loop using
Popen.poll().
2011-07-01 15:24:50 +02:00
..
2011-04-20 19:24:09 +02:00
2011-05-25 18:13:49 +02:00
2011-05-14 06:47:51 +03:00
2011-05-29 16:09:08 -05:00
2011-04-27 10:20:38 +03:00
2011-04-29 16:16:36 +02:00
2011-05-06 00:02:12 +10:00
2011-05-07 19:09:34 +02:00
2011-05-14 15:35:19 -07:00
2011-04-20 19:24:09 +02:00
2011-05-09 08:10:38 +02:00
2011-05-25 18:13:49 +02:00
2011-05-04 18:39:29 +03:00
2011-06-27 09:18:46 -05:00
2011-06-27 09:18:46 -05:00
2011-05-06 10:57:22 +02:00
2011-05-24 12:51:24 -05:00
2011-04-17 16:48:52 +02:00