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-03-26 18:17:05 -05:00
2011-04-20 19:24:09 +02:00
2011-05-25 18:13:49 +02:00
2011-03-21 02:51:38 +01:00
2011-05-14 06:47:51 +03:00
2011-03-26 18:11:54 -05:00
2011-03-27 21:07:13 +02:00
2011-05-29 16:09:08 -05:00
2011-03-16 11:35:38 +02:00
2011-04-27 10:20:38 +03:00
2011-03-16 11:35:38 +02:00
2010-09-09 03:53:22 +00:00
2011-04-29 16:16:36 +02:00
2011-05-06 00:02:12 +10:00
2011-03-16 11:35:38 +02:00
2010-08-13 16:26:40 +00:00
2011-05-07 19:09:34 +02:00
2010-08-30 14:05:50 +00:00
2011-03-15 05:59:46 +02:00
2011-05-14 15:35:19 -07:00
2011-04-20 19:24:09 +02:00
2010-12-23 23:18:41 +00:00
2011-05-09 08:10:38 +02:00
2011-03-15 05:59:46 +02:00
2010-12-04 16:21:42 +00:00
2011-03-16 11:35: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-03-25 14:25:36 +02:00
2011-01-23 21:33:36 +00:00
2011-05-06 10:57:22 +02:00
2011-05-24 12:51:24 -05:00
2011-01-16 09:16:27 +00:00
2011-04-17 16:48:52 +02:00
2011-03-16 11:35:38 +02:00
2010-10-31 16:06:55 +00:00
2010-12-03 07:49:09 +00:00