summaryrefslogtreecommitdiffstats
path: root/Lib/test/eintrdata
Commit message (Collapse)AuthorAgeFilesLines
* bpo-40275: Avoid importing socket in test.support (GH-19603)Serhiy Storchaka2020-04-251-2/+3
| | | | | | * Move socket related functions from test.support to socket_helper. * Import socket, nntplib and urllib.error lazily in transient_internet(). * Remove importing multiprocess.
* bpo-38203: faulthandler.dump_traceback_later() is always available (GH-16249)Victor Stinner2019-09-181-5/+3
| | | | dump_traceback_later() and cancel_dump_traceback_later() functions of the faulthandler module are always available since Python 3.7.
* bpo-35934: Add socket.create_server() utility function (GH-11784)Giampaolo Rodola2019-04-081-4/+1
|
* bpo-35633: test_lockf() fails with "PermissionError: [Errno 13] Permission ↵Michael Felt2019-02-141-0/+4
| | | | | | | | | | | | denied" on AIX (GH-11424) [bpo-35633](https://bugs.python.org/issue35633): Fix a test regression introduced with [bpo-35189](https://bugs.python.org/issue35189) (PEP 475: fnctl functions are not retried if interrupted (EINTR)). Not only a blocking IO error needs to be ignored - permission errors also need to be ignored. p.s. - iirc as a "test" only correction a NEWS item is not required. If this is not correct - just mention, and I'll add a NEWS blurb. https://bugs.python.org/issue35633
* bpo-35363, test_eintr: skip test_open() on macOS (GH-10896)Victor Stinner2018-12-041-2/+4
|
* bpo-35189, bpo-35316: Make test_eintr less strict (GH-10782)Victor Stinner2018-11-291-2/+0
| | | test_eintr no longer fails if the signal handler has not been called.
* bpo-35189: Retry fnctl calls on EINTR (GH-10413)nierob2018-11-231-0/+39
| | | | Modify the following fnctl function to retry if interrupted by a signal (EINTR): flock, lockf, fnctl.
* bpo-35189: Fix eintr_tester.py (GH-10637)Victor Stinner2018-11-211-22/+18
| | | | | | | | | | | | | 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.
* bpo-34582: Adds JUnit XML output for regression tests (GH-9210)Steve Dower2018-09-181-1/+2
|
* bpo-28759: Skip some tests on PermissionError raised by Android (GH-4350)xdegaye2017-11-121-3/+4
| | | | | | Access to mkfifo(), mknod() and hard link creation is controled by SELinux on Android. Also remove test.support.android_not_root.
* bpo-30320: test_eintr now uses pthread_sigmask() (#1523)Victor Stinner2017-05-101-35/+26
| | | | | | | | | | | | Rewrite sigwaitinfo() and sigtimedwait() unit tests for EINTR using pthread_sigmask() to fix a race condition between the child and the parent process. Remove the pipe which was used as a weak workaround against the race condition. sigtimedwait() is now tested with a child process sending a signal instead of testing the timeout feature which is more unstable (especially regarding to clock resolution depending on the platform).
* bpo-29972: Skip tests known to fail on AIX (#979)Victor Stinner2017-04-041-1/+6
| | | | | | | | | | | | | | | | | | | | | | * bpo-29972: Fix test_eintr on AIX On AIX, sigtimedwait(0.2) sleeps 199.8 ms, whereas the test expects 200 ms or longer. * bpo-29972: Skip some inet_pton() tests on AIX Skip some inet_pton() tests of test_socket on AIX. inet_pton() on AIX is less strict than on Linux and doesn't reject some invalid IP addresses. The unit tests test more the libc than Python itself. * bpo-29972: Skip tests known to fail on AIX * test_locale.test_strcoll_with_diacritic() * test_locale.test_strxfrm_with_diacritic() * test_strptime.test_week_of_year_and_day_of_week_calculation() * test_tools.test_POT_Creation_Date()
* bpo-28087: Skip test_asyncore and test_eintr poll failures on macOS. (#462)Ned Deily2017-03-041-0/+2
| | | | | | | * bpo-28087: Skip test_asyncore and test_eintr poll failures on macOS Skip some tests of select.poll when running on macOS due to unresolved issues with the underlying system poll function on some macOS versions.
* Issue #28759: Fix the tests that fail with PermissionError when run asXavier de Gaye2016-12-131-0/+2
| | | | a non-root user on Android where access rights are controled by SELinux MAC.
* test_eintr: Fix ResourceWarning warningsVictor Stinner2016-09-101-0/+5
|
* Issue #27626: Merge spelling fixes from 3.5Martin Panter2016-07-281-1/+1
|\
| * Issue #27626: Spelling fixes in docs, comments and internal namesMartin Panter2016-07-281-1/+1
| | | | | | | | Based on patch by Ville Skyttä.
| * Backport fixes on test_eintrVictor Stinner2016-01-281-5/+17
| | | | | | | | | | | | | | * Issue #25234: Skip test_eintr.test_open() under OS X to avoid hanging * Issue #25868: Try to make test_eintr.test_sigwaitinfo() more reliable especially on slow buildbots. Use a pipe to synchronize the parent and the child processes.
* | Remove more unused imports in tests.Serhiy Storchaka2016-04-241-1/+0
| |
* | Issue #25234: Skip test_eintr.test_open() under OS X to avoid hangingBrett Cannon2016-01-221-0/+1
| |
* | Issue #25234: Skip test_eintr.test_os_open under OS X.Brett Cannon2015-12-291-0/+1
| | | | | | | | Test inconsistently hangs.
* | Issue #25868: Try to make test_eintr.test_sigwaitinfo() more reliableVictor Stinner2015-12-151-5/+15
| | | | | | | | | | | | especially on slow buildbots Use a pipe to synchronize the parent and the child processes.
* | Merge 3.5 (test_eintr)Victor Stinner2015-10-121-5/+5
|\ \ | |/
| * Issue #25277: Use a longer sleep in test_eintr to reduce the risk of raceVictor Stinner2015-10-121-5/+5
| | | | | | | | condition in test_eintr.
* | Close #25368: Fix test_eintr when Python is compiled without thread supportVictor Stinner2015-10-111-2/+4
| |
* | Issue #25277: Set a timeout of 10 minutes in test_eintr using faulthandler toVictor Stinner2015-10-011-0/+5
|/ | | | | | | try to debug a hang on the FreeBSD 9 buildbot. Run also eintr_tester.py with python "-u" command line option to try to get the full output on hang/crash.
* Issue #25122: test_eintr: the FreeBSD fix will be released in FreeBSD 10.3Victor Stinner2015-09-211-2/+2
|
* Issue #25122: sync test_eintr with Python 3.6Victor Stinner2015-09-181-97/+190
| | | | | | | | | | * test_eintr: support verbose mode, don't redirect eintr_tester output into a pipe * eintr_tester: replace os.fork() with subprocess to have a cleaner child process (ex: don't inherit setitimer()) * eintr_tester: kill the process if the unit test fails * test_open/test_os_open(): write support.PIPE_MAX_SIZE bytes instead of support.PIPE_MAX_SIZE*3 bytes
* Issue #23485: select.devpoll.poll() is now retried when interrupted by a signalVictor Stinner2015-03-311-0/+11
|
* Issue #23485: select.kqueue.control() is now retried when interrupted by a ↵Victor Stinner2015-03-311-2/+13
| | | | signal
* Issue #23485: select.epoll.poll() is now retried when interrupted by a signalVictor Stinner2015-03-301-0/+11
|
* Issue #23485: select.poll.poll() is now retried when interrupted by a signalVictor Stinner2015-03-301-3/+17
|
* Issue #23485: select.select() is now retried automatically with the recomputedVictor Stinner2015-03-301-1/+15
| | | | | | | | | timeout when interrupted by a signal, except if the signal handler raises an exception. This change is part of the PEP 475. The asyncore and selectors module doesn't catch the InterruptedError exception anymore when calling select.select(), since this function should not raise InterruptedError anymore.
* Issue #23715: Fix test_sigtimedwait() of test_eintrVictor Stinner2015-03-271-1/+1
| | | | | sigtimedwait([], timeout) fails with OSError(EINVAL) on OpenIndiana, wait for a signal which will never be received instead.
* Issue #23715: Fix test_eintr, skip tests on signal.sigwaitinfo() andVictor Stinner2015-03-201-0/+4
| | | | signal.sigtimedwait() if functions are missing
* Issue #23715: signal.sigwaitinfo() and signal.sigtimedwait() are now retriedVictor Stinner2015-03-201-1/+37
| | | | | | | | | | 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: Enhance precision of time.sleep() and socket timeout whenVictor Stinner2015-03-201-5/+2
| | | | | | | | interrupted by a signal Add a new _PyTime_AddDouble() function and remove _PyTime_ADD_SECONDS() macro. The _PyTime_ADD_SECONDS only supported an integer number of seconds, the _PyTime_AddDouble() has subsecond resolution.
* Issue #23646: If time.sleep() is interrupted by a signal, the sleep is nowVictor Stinner2015-03-191-1/+19
| | | | | | | 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 d927047b1d8eb87738676980a24930d053ba2150Victor Stinner2015-03-171-16/+1
| | | | Sorry, it was a mistake, the patch is still under review: issue #23646.
* testVictor Stinner2015-03-121-1/+16
|
* Issue #23285: PEP 475 -- Retry system calls failing with EINTR.Charles-François Natali2015-02-071-0/+260