summaryrefslogtreecommitdiffstats
path: root/Lib/test
Commit message (Collapse)AuthorAgeFilesLines
* Issue #23211: merge from 3.4Ned Deily2015-01-181-2/+2
|\
| * Issue #23211: Workaround test_logging failure on some OS X 10.6 systems:Ned Deily2015-01-181-2/+2
| | | | | | | | | | getaddrinfo("localhost") can fail depending on the name server configuration, use "127.0.0.0" instead.
* | Issue #21817: When an exception is raised in a task submitted to a ↵Antoine Pitrou2015-01-171-0/+26
| | | | | | | | | | | | ProcessPoolExecutor, the remote traceback is now displayed in the parent process. Patch by Claudiu Popa.
* | Issue #15955: Add an option to limit output size when decompressing LZMA data.Antoine Pitrou2015-01-171-0/+91
| | | | | | | | Patch by Nikolaus Rath and Martin Panter.
* | merge 3.4 (#22986)Benjamin Peterson2015-01-171-2/+2
|\ \ | |/
| * capitialize "HttpOnly" and "Secure" as they appear in the standard and other ↵Benjamin Peterson2015-01-171-2/+2
| | | | | | | | | | | | impls (closes #23250) Patch by Jon Dufresne.
* | Merge 3.4 (asyncio)Victor Stinner2015-01-151-2/+12
|\ \ | |/
| * Issue #22685: Fix test_pause_reading() of asyncio/test_subprocessVictor Stinner2015-01-151-2/+12
| | | | | | | | | | | | | | Override the connect_read_pipe() method of the loop to mock immediatly pause_reading() and resume_reading() methods. The test failed randomly on FreeBSD 9 buildbot and on Windows using trollius.
* | Merge 3.4 (asyncio)Victor Stinner2015-01-151-0/+27
|\ \ | |/
| * Closes #23219: cancelling asyncio.wait_for() now cancels the taskVictor Stinner2015-01-151-0/+27
| |
* | Merge 3.4 (asyncio)Victor Stinner2015-01-154-3/+15
|\ \ | |/
| * asyncio: Close transports in testsVictor Stinner2015-01-154-3/+15
| | | | | | | | | | | | | | | | | | * Use test_utils.run_briefly() to execute pending calls to really close transports * sslproto: mock also _SSLPipe.shutdown(), it's need to close the transport * pipe test: the test doesn't close explicitly the PipeHandle, so ignore the warning instead * test_popen: use the context manager ("with p:") to explicitly close pipes
* | Merge 3.4 (asyncio)Victor Stinner2015-01-154-278/+249
|\ \ | |/
| * Issue #23243: Close explicitly transports in asyncio testsVictor Stinner2015-01-153-277/+226
| |
| * Issue #23243: Close explicitly event loops in asyncio testsVictor Stinner2015-01-153-1/+20
| |
| * Issue #23243: Fix asyncio._UnixWritePipeTransport.close()Victor Stinner2015-01-151-0/+3
| | | | | | | | | | Do nothing if the transport is already closed. Before it was not possible to close the transport twice.
* | Merge 3.4 (asyncio)Victor Stinner2015-01-145-0/+26
|\ \ | |/
| * asyncio: sync with TulipVictor Stinner2015-01-145-0/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * PipeHandle now uses None instead of -1 for a closed handle * Sort imports in windows_utils. * Fix test_events on Python older than 3.5. Skip SSL tests on the ProactorEventLoop if ssl.MemoryIO is missing * Fix BaseEventLoop._create_connection_transport(). Close the transport if the creation of the transport (if the waiter) gets an exception. * _ProactorBasePipeTransport now sets _sock to None when the transport is closed. * Fix BaseSubprocessTransport.close(). Ignore pipes for which the protocol is not set yet (still equal to None). * TestLoop.close() now calls the close() method of the parent class (BaseEventLoop). * Cleanup BaseSelectorEventLoop: create the protocol on a separated line for readability and ease debugging. * Fix BaseSubprocessTransport._kill_wait(). Set the _returncode attribute, so close() doesn't try to terminate the process. * Tests: explicitly close event loops and transports * UNIX pipe transports: add closed/closing in repr(). Add "closed" or "closing" state in the __repr__() method of _UnixReadPipeTransport and _UnixWritePipeTransport classes.
* | Merge 3.4 (asyncio)Victor Stinner2015-01-142-4/+61
|\ \ | |/
| * Issue #23197, asyncio: On SSL handshake failure, check if the waiter isVictor Stinner2015-01-142-4/+61
| | | | | | | | | | | | | | cancelled before setting its exception. * Add unit tests for this case. * Cleanup also sslproto.py
* | Merge 3.4 (asyncio)Victor Stinner2015-01-141-0/+36
|\ \ | |/
| * Python issue #23173: sync with TulipVictor Stinner2015-01-141-0/+36
| | | | | | | | | | | | | | | | * If an exception is raised during the creation of a subprocess, kill the subprocess (close pipes, kill and read the return status). Log an error in such case. * Fix SubprocessStreamProtocol.connection_made() to handle cancelled waiter. Add unit test cancelling subprocess methods.
* | Merge 3.4 (asyncio: new SSL implementation)Victor Stinner2015-01-132-11/+53
|\ \ | |/
| * Issue #22560: New SSL implementation based on ssl.MemoryBIOVictor Stinner2015-01-132-11/+53
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The new SSL implementation is based on the new ssl.MemoryBIO which is only available on Python 3.5. On Python 3.4 and older, the legacy SSL implementation (using SSL_write, SSL_read, etc.) is used. The proactor event loop only supports the new implementation. The new asyncio.sslproto module adds _SSLPipe, SSLProtocol and _SSLProtocolTransport classes. _SSLPipe allows to "wrap" or "unwrap" a socket (switch between cleartext and SSL/TLS). Patch written by Antoine Pitrou. sslproto.py is based on gruvi/ssl.py of the gruvi project written by Geert Jansen. This change adds SSL support to ProactorEventLoop on Python 3.5 and newer! It becomes also possible to implement STARTTTLS: switch a cleartext socket to SSL.
* | Merge 3.4 (asyncio)Victor Stinner2015-01-131-1/+2
|\ \ | |/
| * Tulip issue 184: Fix test_pipe() on WindowsVictor Stinner2015-01-131-1/+2
| | | | | | | | Pass explicitly the event loop to StreamReaderProtocol.
* | merge 3.4 (#23221)Benjamin Peterson2015-01-131-1/+1
|\ \ | |/
| * fix instances of consecutive articles (closes #23221)Benjamin Peterson2015-01-131-1/+1
| | | | | | | | Patch by Karan Goel.
* | Issue #23209, #23225: selectors.BaseSelector.get_key() now raises aVictor Stinner2015-01-131-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 internalVictor Stinner2015-01-131-0/+3
| | | | | | | | | | reference to the selector mapping to break a reference cycle. Initial patch written by Martin Richard.
* | Issue #19777: Provide a home() classmethod on Path objects.Antoine Pitrou2015-01-121-0/+11
| | | | | | | | Contributed by Victor Salgado and Mayank Tripathi.
* | Issue #23206: Make ``json.dumps(..., ensure_ascii=False)`` as fast as the ↵Antoine Pitrou2015-01-111-3/+0
| | | | | | | | default case of ``ensure_ascii=True``. Patch by Naoki Inada.
* | Issue #23185: add math.inf and math.nan constants.Mark Dickinson2015-01-111-0/+11
| |
* | Issue #19776: Fix test_pathlib.test_expanduser()Victor Stinner2015-01-101-1/+1
| | | | | | | | Skip users with an empty home directory.
* | Merge 3.4 (asyncio)Victor Stinner2015-01-091-0/+19
|\ \ | |/
| * asyncio: sync with TulipVictor Stinner2015-01-091-0/+19
| | | | | | | | | | | | | | * Tulip issue 184: FlowControlMixin constructor now get the event loop if the loop parameter is not set. Add unit tests to ensure that constructor of StreamReader and StreamReaderProtocol classes get the event loop. * Remove outdated TODO/XXX
* | Issue #23014: Make importlib.abc.Loader.create_module() required whenBrett Cannon2015-01-095-3/+22
| | | | | | | | | | | | | | | | | | importlib.abc.Loader.exec_module() is also defined. Before this change, create_module() was optional **and** could return None to trigger default semantics. This change now reduces the options for choosing default semantics to one and in the most backporting-friendly way (define create_module() to return None).
* | Merge 3.4 (asyncio)Victor Stinner2015-01-085-18/+37
|\ \ | |/
| * asyncio: Truncate to 80 columnsVictor Stinner2015-01-085-18/+37
| |
* | enable cert validation in testBenjamin Peterson2015-01-081-1/+4
| |
* | trying againBenjamin Peterson2015-01-081-2/+2
| |
* | reorder cipher prefsBenjamin Peterson2015-01-081-1/+1
| |
* | drop 256Benjamin Peterson2015-01-081-2/+2
| |
* | try using AES256Benjamin Peterson2015-01-081-3/+3
| |
* | fix assertions after ciphers were changedBenjamin Peterson2015-01-071-2/+1
| |
* | rc4 is a long time favoriteBenjamin Peterson2015-01-071-2/+2
| |
* | everyone should support AES ciphersBenjamin Peterson2015-01-071-3/+4
| |
* | include some more ciphersBenjamin Peterson2015-01-071-3/+3
| |
* | force test server to speak tlsv1Benjamin Peterson2015-01-071-1/+1
| |
* | remove apparently wrong assertion about des bit sizeBenjamin Peterson2015-01-071-1/+0
| |