summaryrefslogtreecommitdiffstats
path: root/Lib/test
Commit message (Collapse)AuthorAgeFilesLines
...
* | Closes #23219: cancelling asyncio.wait_for() now cancels the taskVictor Stinner2015-01-151-0/+27
| |
* | 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
* | 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.
* | 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.
* | 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
* | 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.
* | 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.
* | Tulip issue 184: Fix test_pipe() on WindowsVictor Stinner2015-01-131-1/+2
| | | | | | | | Pass explicitly the event loop to StreamReaderProtocol.
* | fix instances of consecutive articles (closes #23221)Benjamin Peterson2015-01-131-1/+1
| | | | | | | | Patch by Karan Goel.
* | 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.
* | 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
* | asyncio: Truncate to 80 columnsVictor Stinner2015-01-085-18/+37
| |
* | Issue 19548: update codecs module documentationNick Coghlan2015-01-061-9/+37
| | | | | | | | | | | | | | | | - clarified the distinction between text encodings and other codecs - clarified relationship with builtin open and the io module - consolidated documentation of error handlers into one section - clarified type constraints of some behaviours - added tests for some of the new statements in the docs
* | Issue #21356: Make ssl.RAND_egd() optional to support LibreSSL. TheVictor Stinner2015-01-061-2/+3
| | | | | | | | | | availability of the function is checked during the compilation. Patch written by Bernard Spil.
* | Issue #23140, asyncio: Simplify the unit testVictor Stinner2015-01-061-8/+6
| |
* | Issue #23140, asyncio: Fix cancellation of Process.wait(). Check the state ofVictor Stinner2015-01-061-0/+28
| | | | | | | | the waiter future before setting its result.
* | Issue #22165: Skip test_undecodable_filename on OS X prior to 10.5.Ned Deily2015-01-051-0/+1
| | | | | | | | 10.4 systems do not allow creation of files with such filenames.
* | fix issue23157 - time_hashlib hadn't been ported to Python 3.Gregory P. Smith2015-01-041-3/+4
| |
* | Issue #22926: In debug mode, call_soon(), call_at() and call_later() methods ofVictor Stinner2014-12-263-39/+66
| | | | | | | | | | | | | | | | | | | | asyncio.BaseEventLoop now use the identifier of the current thread to ensure that they are called from the thread running the event loop. Before, the get_event_loop() method was used to check the thread, and no exception was raised when the thread had no event loop. Now the methods always raise an exception in debug mode when called from the wrong thread. It should help to notice misusage of the API.
* | asyncio: sync with TulipVictor Stinner2014-12-268-22/+16
| | | | | | | | | | * Fix pyflakes warnings: remove unused imports and variables * asyncio.test_support now uses test.support and test.script_helper if available
* | Issue #22585: On OpenBSD 5.6 and newer, os.urandom() now calls getentropy(),Victor Stinner2014-12-211-0/+7
| | | | | | | | instead of reading /dev/urandom, to get pseudo-random bytes.
* | fix behavior of trailing slash redirection when a query string is involved ↵Benjamin Peterson2014-12-261-0/+6
| | | | | | | | (closes #23112)
* | allow more operations to work on detached streams (closes #23093)Benjamin Peterson2014-12-221-0/+14
| | | | | | | | Patch by Martin Panter.
* | Issue #19104: pprint now produces evaluable output for wrapped strings.Serhiy Storchaka2014-12-201-10/+13
| |
* | Issue #23071: "namereplace_errors" was added only in 3.5.Serhiy Storchaka2014-12-201-1/+0
| |
* | Issue #23071: Added missing names to codecs.__all__. Patch by Martin Panter.Serhiy Storchaka2014-12-201-0/+23
| |
* | asyncio: IocpProactor.wait_for_handle() test now also checks the result of theVictor Stinner2014-12-191-2/+6
| | | | | | | | future
* | asyncio: sync with TulipVictor Stinner2014-12-186-16/+37
| |
* | Issue #23074: asyncio.get_event_loop() now raises an exception if the threadVictor Stinner2014-12-181-2/+2
| | | | | | | | has no event loop even if assertions are disabled.
* | Issue #15513: Added a __sizeof__ implementation for pickle classes.Serhiy Storchaka2014-12-161-1/+69
| |
* | Issue #19858: pickletools.optimize() now aware of the MEMOIZE opcode, canSerhiy Storchaka2014-12-161-0/+43
| | | | | | | | | | produce more compact result and no longer produces invalid output if input data contains MEMOIZE opcodes together with PUT or BINPUT opcodes.
* | remove extra ssl imports (closes #23053)Benjamin Peterson2014-12-151-1/+0
| | | | | | | | Patch from Jan Matejek.
* | Issue #22777: Test pickling with all protocols.Serhiy Storchaka2014-12-1529-634/+716
| |
* | Issue #23015: Improved testing of the uuid module.Serhiy Storchaka2014-12-151-105/+94
| |
* | make sure server threads get cleaned upBenjamin Peterson2014-12-131-0/+1
| |
* | pop the loop block even for infinite while loops (closes #23048)Benjamin Peterson2014-12-132-3/+15
| |
* | test_selectors: Tolerate 2.0 seconds instead of 1.6 sec for very slow buildbotsVictor Stinner2014-12-121-1/+2
| |
* | Issue #22935: Fix test_ssl when the SSLv3 protocol is not supportedVictor Stinner2014-12-121-1/+2
| |
* | Issue #22095: Fixed HTTPConnection.set_tunnel with default port. The portSerhiy Storchaka2014-12-121-3/+5
| | | | | | | | value in the host header was set to "None". Patch by Demian Brecht.
* | asyncio, tulip issue 209: Fix subprocess for close_fds=False on Python 3.3Victor Stinner2014-12-111-0/+21
| | | | | | | | Mark the write end of the stdin pipe as non-inheritable.
* | asyncio, tulip issue 202: Add unit test of pause/resume writing for proactorVictor Stinner2014-12-111-0/+82
| | | | | | | | socket transport
* | Issue #23016: A warning no longer produces AttributeError when the programSerhiy Storchaka2014-12-101-0/+9
| | | | | | | | is run with pythonw.exe.
* | Issue #21775: shutil.copytree(): fix crash when copying to VFATBerker Peksag2014-12-101-0/+15
| | | | | | | | | | | | | | | | | | An exception handler assumed that that OSError objects always have a 'winerror' attribute. That is not the case, so the exception handler itself raised AttributeError when run on Linux (and, presumably, any other non-Windows OS). Patch by Greg Ward.
* | inspect: Fix getsource() to load updated source of reloaded moduleYury Selivanov2014-12-081-1/+32
| | | | | | | | Issue #1218234. Initial patch by Berker Peksag.
* | selectors: Make sure EpollSelecrtor.select() works when no FD is registered.Yury Selivanov2014-12-081-0/+5
| | | | | | | | Closes issue #23009.
* | HTTPSConnection: prefer the context's check_hostname attribute over the ↵Benjamin Peterson2014-12-071-0/+14
| | | | | | | | constructor parameter (#22959)
* | allow ssl module to compile if openssl doesn't support SSL 3 (closes #22935)Benjamin Peterson2014-12-062-8/+17
| | | | | | | | Patch by Kurt Roeckx.
* | merge 3.3 (#16043)Benjamin Peterson2014-12-061-2/+23
|\ \ | |/