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