Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Issue #23715: signal.sigwaitinfo() and signal.sigtimedwait() are now retried | Victor Stinner | 2015-03-20 | 1 | -29/+0 |
| | | | | | | | | | | when interrupted by a signal not in the *sigset* parameter, if the signal handler does not raise an exception. signal.sigtimedwait() recomputes the timeout with a monotonic clock when it is retried. Remove test_signal.test_sigwaitinfo_interrupted() because sigwaitinfo() doesn't raise InterruptedError anymore if it is interrupted by a signal not in its sigset parameter. | ||||
* | Issue #23646: If time.sleep() is interrupted by a signal, the sleep is now | Victor Stinner | 2015-03-19 | 1 | -14/+17 |
| | | | | | | | retried with the recomputed delay, except if the signal handler raises an exception (PEP 475). Modify also test_signal to use a monotonic clock instead of the system clock. | ||||
* | Revert changeset d927047b1d8eb87738676980a24930d053ba2150 | Victor Stinner | 2015-03-17 | 1 | -10/+7 |
| | | | | Sorry, it was a mistake, the patch is still under review: issue #23646. | ||||
* | test | Victor Stinner | 2015-03-12 | 1 | -7/+10 |
| | |||||
* | Issue #23285: PEP 475 -- Retry system calls failing with EINTR. | Charles-François Natali | 2015-02-07 | 1 | -4/+3 |
| | |||||
* | Issue #22042: Fix test_signal on Windows | Victor Stinner | 2014-08-27 | 1 | -2/+3 |
| | |||||
* | Issue #22042: signal.set_wakeup_fd(fd) now raises an exception if the file | Victor Stinner | 2014-08-27 | 1 | -0/+25 |
| | | | | descriptor is in blocking mode. | ||||
* | Issue #22018: Fix test_signal: use assertEqual() not assertIs() | Victor Stinner | 2014-07-30 | 1 | -3/+3 |
| | |||||
* | Issue #22018: On Windows, signal.set_wakeup_fd() now also supports sockets. | Victor Stinner | 2014-07-29 | 1 | -0/+107 |
| | | | | A side effect is that Python depends to the WinSock library. | ||||
* | Issue #22054: Add os.get_blocking() and os.set_blocking() functions to get and | Victor Stinner | 2014-07-29 | 1 | -8/+2 |
| | | | | | set the blocking mode of a file descriptor (False if the O_NONBLOCK flag is set, True otherwise). These functions are not available on Windows. | ||||
* | Issue #22018: Fix test_set_wakeup_fd_result(), use assertEqual() not | Victor Stinner | 2014-07-24 | 1 | -3/+3 |
| | | | | assertIs(). | ||||
* | Backout 42ced0d023cd: oops, i didn't want to push this changeset :-/ | Victor Stinner | 2014-07-24 | 1 | -119/+11 |
| | |||||
* | tets | Victor Stinner | 2014-07-24 | 1 | -11/+119 |
| | |||||
* | Issue #22018: Hum, set_wakeup_fd() still raises ValueError on Windows | Victor Stinner | 2014-07-21 | 1 | -1/+2 |
| | |||||
* | Issue #22018: signal.set_wakeup_fd() now raises an OSError instead of a | Victor Stinner | 2014-07-21 | 1 | -3/+3 |
| | | | | ValueError on fstat() failure. | ||||
* | Issue #22018: Add _testcapi.raise_signal() | Victor Stinner | 2014-07-21 | 1 | -19/+46 |
| | | | | | | | | - Use _testcapi.raise_signal() in test_signal - close also os.pipe() file descriptors in some test_signal tests where they were not closed properly - Remove faulthandler._sigill() and faulthandler._sigbus(): reuse _testcapi.raise_signal() in test_faulthandler | ||||
* | Fix printing out error message when test fails and run with -bb | Antoine Pitrou | 2014-05-11 | 1 | -1/+1 |
|\ | |||||
| * | Fix printing out error message when test fails and run with -bb | Antoine Pitrou | 2014-05-11 | 1 | -1/+1 |
| | | |||||
* | | Skip test_enums in the absence of threading. | Stefan Krah | 2014-04-15 | 1 | -0/+1 |
| | | |||||
* | | fix #21076: turn signal module constants into enums | Giampaolo Rodola' | 2014-04-04 | 1 | -4/+35 |
|/ | |||||
* | Merge: #19970: Fix some comment typos. | R David Murray | 2013-12-14 | 1 | -1/+1 |
|\ | |||||
| * | #19970: Fix some comment typos. | R David Murray | 2013-12-14 | 1 | -1/+1 |
| | | | | | | | | Report and patch by Vajrasky Kok. | ||||
* | | Make test_wakeup_write_error more robust | Antoine Pitrou | 2013-08-17 | 1 | -0/+10 |
| | | | | | | | | (trying to fix a failure on the FreeBSD 9.0 buildbot) | ||||
* | | Issue #16105: When a signal handler fails to write to the file descriptor ↵ | Antoine Pitrou | 2013-08-17 | 1 | -0/+41 |
| | | | | | | | | registered with ``signal.set_wakeup_fd()``, report an exception instead of ignoring the error. | ||||
* | | Merge #18396 from 3.3 | Nick Coghlan | 2013-08-03 | 1 | -2/+8 |
|\ \ | |/ | |||||
| * | Close #18396: fix spurious test_signal failure on Windows | Nick Coghlan | 2013-08-03 | 1 | -2/+8 |
| | | | | | | | | | | signal.getsignal returns None for some signals if faulthandler is enabled (Patch by Jeremy Kloth) | ||||
* | | (Merge 3.3) Issue #18238: Skip test_signal.test_sigwaitinfo_interrupted() on AIX | Victor Stinner | 2013-06-17 | 1 | -0/+4 |
|\ \ | |/ | | | | | | | sigwaitinfo() can be interrupted on Linux (raises InterruptedError), but not on AIX. | ||||
| * | Issue #18238: Skip test_signal.test_sigwaitinfo_interrupted() on AIX | Victor Stinner | 2013-06-17 | 1 | -0/+4 |
| | | | | | | | | | | sigwaitinfo() can be interrupted on Linux (raises InterruptedError), but not on AIX. | ||||
* | | merge 3.3 | Benjamin Peterson | 2013-01-18 | 1 | -2/+9 |
|\ \ | |/ | |||||
| * | check windows fd validity (closes #16992) | Benjamin Peterson | 2013-01-18 | 1 | -2/+9 |
| | | |||||
* | | Issue #16714: use 'raise' exceptions, don't 'throw'. | Andrew Svetlov | 2012-12-18 | 1 | -2/+2 |
|\ \ | |/ | | | | | Patch by Serhiy Storchaka. | ||||
| * | Issue #16714: use 'raise' exceptions, don't 'throw'. | Andrew Svetlov | 2012-12-18 | 1 | -2/+2 |
| |\ | | | | | | | | | | Patch by Serhiy Storchaka. | ||||
| | * | Issue #16714: use 'raise' exceptions, don't 'throw'. | Andrew Svetlov | 2012-12-18 | 1 | -2/+2 |
| | | | | | | | | | | | | Patch by Serhiy Storchaka. | ||||
* | | | Get rig of EnvironmentError (#16705) | Andrew Svetlov | 2012-12-17 | 1 | -1/+1 |
| | | | |||||
* | | | Issue #16704: Get rid of select.error in stdlib. Use OSError instead. | Andrew Svetlov | 2012-12-17 | 1 | -2/+2 |
| | | | |||||
* | | | Remove sys.platform == 'riscos' checks from some Python and test files. #16501 | Christian Heimes | 2012-11-18 | 1 | -3/+0 |
| | | | |||||
* | | | Closes #16135: Removal of OS/2 support | Jesus Cea | 2012-10-05 | 1 | -1/+1 |
|/ / | |||||
* | | Issue #13964: signal.sigtimedwait() timeout is now a float instead of a tuple | Victor Stinner | 2012-03-02 | 1 | -6/+4 |
| | | | | | | | | Add a private API to convert an int or float to a C timespec structure. | ||||
* | | Issue #13084: Fix a test_signal failure: the delivery order is only defined for | Charles-François Natali | 2011-10-02 | 1 | -8/+6 |
| | | | | | | | | real-time signals. | ||||
* | | Issue #12469: fix signal order check of test_signal | Victor Stinner | 2011-07-04 | 1 | -5/+6 |
| | | | | | | | | | | | | | | When signals are unblocked, pending signal ared delivered in the reverse order of their number (also on Linux, not only on FreeBSD 6). Don't sort signals by their number if signals were not blocked (test_signum). | ||||
* | | Issue #12469: test_signal checks wakeup signals order, except on freebsd6 | Victor Stinner | 2011-07-04 | 1 | -4/+4 |
| | | | | | | | | | | On FreeBSD 6, when signals are unblocked, FreeBSD 6 delivers signals in the reverse order of their number. | ||||
* | | Issue #12469: partial revert of 024827a9db64, freebsd6 thread initialization | Victor Stinner | 2011-07-04 | 1 | -3/+0 |
| | | | | | | | | | | | | | | * Don't create a thread at startup anymore to initialize the pthread library: it changes the behaviour of many functions related to signal handling like sigwait() * Reenable test_sigtimedwait_poll() on FreeBSD 6 | ||||
* | | Issue #12469: replace assertions by explicit if+raise | Victor Stinner | 2011-07-04 | 1 | -16/+32 |
| | | |||||
* | | (merge 3.2) Issue #12469: Run wakeup and pending signal tests in a subprocess | Victor Stinner | 2011-07-04 | 1 | -238/+256 |
|\ \ | |/ | | | | | | | to run the test in a fresh process with only one thread and to not change signal handling of the parent process. | ||||
| * | Issue #12469: Run "wakeup" signal tests in subprocess to run the test in a | Victor Stinner | 2011-07-04 | 1 | -37/+68 |
| | | | | | | | | | | fresh process with only one thread and to not change signal handling of the parent process. | ||||
* | | (merge 3.2) Issue #12363: increase the timeout of siginterrupt() tests | Victor Stinner | 2011-07-01 | 1 | -4/+4 |
|\ \ | |/ | | | | | | | | | | | | | Move also the "ready" trigger after the installation of the signal handler and the call to siginterrupt(). Use a timeout of 5 seconds instead of 3. Two seconds are supposed to be enough, but some of our buildbots are really slow (especially the FreeBSD 6 VM). | ||||
| * | Issue #12363: increase the timeout of siginterrupt() tests | Victor Stinner | 2011-07-01 | 1 | -5/+5 |
| | | | | | | | | | | | | | | | | Move also the "ready" trigger after the installation of the signal handler and the call to siginterrupt(). Use a timeout of 5 seconds instead of 3. Two seconds are supposed to be enough, but some of our buildbots are really slow (especially the FreeBSD 6 VM). | ||||
| * | Issue #12363: improve siginterrupt() tests | Victor Stinner | 2011-07-01 | 1 | -89/+86 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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(). | ||||
* | | Issue #12303: run sig*wait*() tests in a subprocesss | Victor Stinner | 2011-06-29 | 1 | -56/+81 |
| | | | | | | | | | | | | | | ... instead of using fork(): sig*wait*() functions behave differently (not correctly) after a fork, especially on FreeBSD 6. Skip also test_sigtimedwait_poll() on FreeBSD 6 because of a kernel bug. | ||||
* | | Fix test_signal on Windows after #12303. | Ross Lagerwall | 2011-06-25 | 1 | -6/+6 |
| | |