Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | bpo-33522: Enable CI builds on Visual Studio Team Services (#6865) | Steve Dower | 2018-05-16 | 1 | -1/+8 |
| | |||||
* | bpo-31479: Always reset the signal alarm in tests (#3588) | Victor Stinner | 2017-09-19 | 1 | -18/+22 |
| | | | | | | | | | | | | | * bpo-31479: Always reset the signal alarm in tests Use "try: ... finally: signal.signal(0)" pattern to make sure that tests don't "leak" a pending fatal signal alarm. * Move two more alarm() calls into the try block Fix also typo: replace signal.signal(0) with signal.alarm(0) * Move another signal.alarm() into the try block | ||||
* | bpo-30014: make poll-like selector's modify() method faster (#1030) | Giampaolo Rodola | 2017-06-09 | 1 | -0/+27 |
| | | | | | | | | | | | | | | | | * #30014: make selectors.DefaultSelector.modify() faster by relying on selector's modify() method instead of un/register()ing the fd * #30014: add unit test * speedup poll/epoll/devpoll modify() method by using internal modify() call * update doc * address PR comments * update NEWS entries * use != instead of 'is not' | ||||
* | Issue #27759: Fix selectors incorrectly retain invalid file descriptors. | Yury Selivanov | 2016-09-15 | 1 | -0/+23 |
| | | | | Patch by Mark Williams. | ||||
* | Issue #23485: Enhance and update selectors doc and test_selectors | Victor Stinner | 2015-03-31 | 1 | -3/+34 |
| | | | | | | | | Selector.select() is now retried with the recomputed timeout when interrupted by a signal. Write an unit test with a signal handler raising an exception, and a unit with a signal handler which does not raise an exception (it does nothing). | ||||
* | Merge 3.4 | Victor Stinner | 2015-01-22 | 1 | -0/+2 |
|\ | |||||
| * | Issue #23009: Skip test_selectors.test_empty_select() on Windows | Victor Stinner | 2015-01-22 | 1 | -0/+4 |
| | | |||||
* | | Issue #23209, #23225: selectors.BaseSelector.get_key() now raises a | Victor Stinner | 2015-01-13 | 1 | -4/+7 |
|\ \ | |/ | | | | | | | | | RuntimeError if the selector is closed. And selectors.BaseSelector.close() now clears its internal reference to the selector mapping to break a reference cycle. Initial patch written by Martin Richard. | ||||
| * | Issue #23209, #23225: selectors.BaseSelector.close() now clears its internal | Victor Stinner | 2015-01-13 | 1 | -0/+3 |
| | | | | | | | | | | reference to the selector mapping to break a reference cycle. Initial patch written by Martin Richard. | ||||
* | | Issue #23009: Skip test_selectors.test_empty_select() on Windows | Victor Stinner | 2014-12-17 | 1 | -0/+3 |
| | | |||||
* | | Merge 3.4 (test_selectors) | Victor Stinner | 2014-12-12 | 1 | -1/+2 |
|\ \ | |/ | |||||
| * | test_selectors: Tolerate 2.0 seconds instead of 1.6 sec for very slow buildbots | Victor Stinner | 2014-12-12 | 1 | -1/+2 |
| | | |||||
* | | selectors: Make sure EpollSelecrtor.select() works when no FD is registered. | Yury Selivanov | 2014-12-08 | 1 | -0/+5 |
|\ \ | |/ | | | | | Closes issue #23009. | ||||
| * | selectors: Make sure EpollSelecrtor.select() works when no FD is registered. | Yury Selivanov | 2014-12-08 | 1 | -0/+5 |
| | | | | | | | | Closes issue #23009. | ||||
* | | Issue #22043: time.monotonic() is now always available | Victor Stinner | 2014-09-02 | 1 | -4/+1 |
| | | | | | | | | | | threading.Lock.acquire(), threading.RLock.acquire() and socket operations now use a monotonic clock, instead of the system clock, when a timeout is used. | ||||
* | | Issue #21566: Make use of socket.listen() default backlog. | Charles-François Natali | 2014-07-23 | 1 | -1/+1 |
| | | |||||
* | | Issue #21901: Cap the maximum number of file descriptors to use for the test. | Charles-François Natali | 2014-07-22 | 1 | -1/+1 |
|\ \ | |/ | |||||
| * | Issue #21901: Cap the maximum number of file descriptors to use for the test. | Charles-François Natali | 2014-07-22 | 1 | -1/+1 |
| | | |||||
* | | Fix issue 18931: selectors module now supports /dev/poll on Solaris. | Giampaolo Rodola' | 2014-03-20 | 1 | -1/+9 |
|/ | |||||
* | Issue #20505: Remove resolution and _granularity from selectors and asyncio | Victor Stinner | 2014-02-07 | 1 | -5/+0 |
| | | | | | * Remove selectors.BaseSelector.resolution attribute * Remove asyncio.BaseEventLoop._granularity attribute | ||||
* | test_selectors: remove unused imports | Victor Stinner | 2014-01-25 | 1 | -1/+1 |
| | |||||
* | Issue #20311: selectors: Add a resolution attribute to BaseSelector. | Victor Stinner | 2014-01-25 | 1 | -0/+5 |
| | |||||
* | Issue #20311: Revert e042ea77a152 and 7ce7295393c2, PollSelector.select() and | Victor Stinner | 2014-01-25 | 1 | -19/+0 |
| | | | | EpollSelector.select() round again the timeout towards zero | ||||
* | Issue #20311: add debug help in test_selectors | Victor Stinner | 2014-01-23 | 1 | -2/+5 |
| | |||||
* | Issue #20311: selector.PollSelector.select() now rounds the timeout away from | Victor Stinner | 2014-01-21 | 1 | -1/+17 |
| | | | | | | | | zero, instead of rounding towards zero. For example, a timeout of one microsecond is now rounded to one millisecond, instead of being rounded to zero. Move also a test in test_epoll which was moved by my previous merge. | ||||
* | Backed out changeset c4c1c4bc8086 | Victor Stinner | 2013-12-09 | 1 | -1/+1 |
| | |||||
* | Issue #19876: Run also ↵ | Victor Stinner | 2013-12-09 | 1 | -1/+1 |
| | | | | | | test_selectors.test_unregister_after_fd_close_and_reuse() on Windows os.dup2() is available on Windows. | ||||
* | Fix test_selectors failure introduced by 39e7995f9ad1. | Charles-François Natali | 2013-12-08 | 1 | -0/+1 |
| | |||||
* | Silently ignore unregistering closed files. Fixes issue 19876. With docs and ↵ | Guido van Rossum | 2013-12-07 | 1 | -37/+59 |
| | | | | slight test refactor. | ||||
* | test_selectors: test_timeout fails sometimes on busy (slow) buildbots, relax | Victor Stinner | 2013-11-17 | 1 | -1/+2 |
| | | | | | | | | | | | | | | the unit test on max time (but be more strict on mon time). Example of failure: http://buildbot.python.org/all/builders/x86%20OpenIndiana%203.x/builds/6978/steps/test/logs/stdio ====================================================================== FAIL: test_timeout (test.test_selectors.PollSelectorTestCase) ---------------------------------------------------------------------- Traceback (most recent call last): File "/export/home/buildbot/32bits/3.x.cea-indiana-x86/build/Lib/test/test_selectors.py", line 316, in test_timeout self.assertTrue(0.5 < t1 - t0 < 1.5, t1 - t0) AssertionError: False is not true : 1.5033390671014786 | ||||
* | Optimize BaseSelector.modify(). Patch by Arnaud Faure. | Guido van Rossum | 2013-11-07 | 1 | -0/+10 |
| | |||||
* | Issue #19172: Add a get_map() method to selectors. | Charles-François Natali | 2013-10-30 | 1 | -0/+27 |
| | |||||
* | test_selectors: make timeout-related errors report the actual elapsed timeout. | Charles-François Natali | 2013-10-25 | 1 | -4/+5 |
| | |||||
* | test_selectors: rename test_interrupted_retry() (since it doesn't actually | Charles-François Natali | 2013-10-25 | 1 | -1/+1 |
| | | | | retry on EINTR). | ||||
* | Issue #18963: skip test_selectors.test_above_fd_setsize on older OS X versions. | Charles-François Natali | 2013-09-08 | 1 | -0/+2 |
| | |||||
* | Issue #18963: Fix test_selectors.test_above_fd_setsize on OS X, where the | Charles-François Natali | 2013-09-08 | 1 | -2/+1 |
| | | | | default RLIMIT_NOFILE hard limit can be RLIMIT_INFINITY. | ||||
* | Issue #16853: Add new selectors module. | Charles-François Natali | 2013-09-04 | 1 | -0/+390 |