summaryrefslogtreecommitdiffstats
path: root/Lib/test
Commit message (Collapse)AuthorAgeFilesLines
* Issue #22286: The "backslashreplace" error handlers now works withSerhiy Storchaka2015-01-252-11/+71
| | | | decoding and translating.
* merge from 3.4Senthil Kumaran2015-01-251-25/+42
|\ | | | | | | | | | | | | Increase http.client.HTTPConnection test coverage. Added a new tunnel test to verify setting of _tunnel_host, _tunnel_port, _tunnel_headers attributes on HTTPConnection object.
| * Increase http.client.HTTPConnection test coverage.Senthil Kumaran2015-01-251-25/+42
| | | | | | | | | | Added a new tunnel test to verify setting of _tunnel_host, _tunnel_port, _tunnel_headers attributes on HTTPConnection object.
* | Issue20284: Implement PEP461Ethan Furman2015-01-242-141/+288
| |
* | prefer server alpn ordering over the client'sBenjamin Peterson2015-01-231-2/+2
| |
* | add support for ALPN (closes #20188)Benjamin Peterson2015-01-231-4/+60
| |
* | http.client: disable Nagle's algorithm (closes #23302)Benjamin Peterson2015-01-231-22/+3
| | | | | | | | Patch by Demian Brecht.
* | revert 7b833bd1f509. I misread the side effect that the code was triggering.Gregory P. Smith2015-01-231-2/+4
|\ \ | |/ | | | | | | *any* kwarg supplied to _assert_python causes it to not append -E to the command line flags so without='-E' does effectively work.
| * revert 7b833bd1f509. I misread the side effect that the code was triggering.Gregory P. Smith2015-01-231-2/+4
| | | | | | | | | | *any* kwarg supplied to _assert_python causes it to not append -E to the command line flags so without='-E' does effectively work.
* | Remove the unimplemented but ignored without='-E' parameters being passed toGregory P. Smith2015-01-231-4/+2
|\ \ | |/ | | | | | | | | script_helper.assert_python_failure(). No such feature has ever existed, thus it doesn't do what the comment claims. (It does add a 'without' variable to the environment of the child process but that was not intended)
| * Remove the unimplemented but ignored without='-E' parameters being passed toGregory P. Smith2015-01-231-4/+2
| | | | | | | | | | | | script_helper.assert_python_failure(). No such feature has ever existed, thus it doesn't do what the comment claims. (It does add a 'without' variable to the environment of the child process but that was not intended)
* | Only pass -E to the child interpreter if our interpreter was running in thatGregory P. Smith2015-01-231-7/+15
|\ \ | |/ | | | | | | | | | | | | | | mode. Explicitly remove the PYTHONFAULTHANDLER environment variable before launching a child interpreter when its presence would impact the test (the reason -E was being used in the first place). This enables running the test in an environment where other Python environment variables must be set in order for things to run (such as using PYTHONHOME to tell an embedded interpreter where it should think it lives).
| * Only pass -E to the child interpreter if our interpreter was running in thatGregory P. Smith2015-01-231-7/+15
| | | | | | | | | | | | | | | | | | | | mode. Explicitly remove the PYTHONFAULTHANDLER environment variable before launching a child interpreter when its presence would impact the test (the reason -E was being used in the first place). This enables running the test in an environment where other Python environment variables must be set in order for things to run (such as using PYTHONHOME to tell an embedded interpreter where it should think it lives).
* | Break up TestCommandLine.test_env_var into four distinct tests.Gregory P. Smith2015-01-221-3/+5
|\ \ | |/
| * Break up TestCommandLine.test_env_var into four distinct tests.Gregory P. Smith2015-01-221-3/+5
| |
| * Issue #23009: Add missing "import sys" in test_selectorsVictor Stinner2015-01-221-0/+1
| |
* | Merge 3.4Victor Stinner2015-01-221-0/+2
|\ \ | |/
| * Issue #23009: Skip test_selectors.test_empty_select() on WindowsVictor Stinner2015-01-221-0/+4
| |
* | Merge 3.4 (asyncio)Victor Stinner2015-01-212-11/+4
|\ \ | |/
| * asyncio: pyflakes, remove unused importVictor Stinner2015-01-211-9/+1
| | | | | | | | tests: Remove unused function; inline another function
| * asyncio: Enhance BaseProactorEventLoop._loop_self_reading()Victor Stinner2015-01-211-2/+3
| | | | | | | | | | | | | | | | * Handle correctly CancelledError: just exit * On error, log the exception and exit Don't try to close the event loop, it is probably running and so it cannot be closed.
* | Add the command line to the AssertionError raised by test.script_helper'sGregory P. Smith2015-01-212-2/+38
|\ \ | |/ | | | | | | | | | | Python subprocess failure assertion error messages for easier debugging. Adds a unittest for test.script_helper to confirm that this code works as it is otherwise uncovered by an already passing test suite that uses it. :)
| * Add the command line to the AssertionError raised by test.script_helper'sGregory P. Smith2015-01-212-2/+38
| | | | | | | | | | | | | | Python subprocess failure assertion error messages for easier debugging. Adds a unittest for test.script_helper to confirm that this code works as it is otherwise uncovered by an already passing test suite that uses it. :)
* | Merge with 3.4 (closes #23280)Zachary Ware2015-01-201-1/+3
|\ \ | |/
| * Issue #23280: Fix docstrings for binascii.(un)hexlifyZachary Ware2015-01-201-1/+3
| |
* | Issue #23266: Restore the performance of ipaddress.collapse_addresses() whithSerhiy Storchaka2015-01-181-5/+9
| | | | | | | | duplicated addresses and simplify the code.
* | Issue 23261: Clean-up the hack to store the set.pop() search finger in a ↵Raymond Hettinger2015-01-181-1/+1
| | | | | | | | hash field instead of the setobject.
* | Fixed tests for issue #23133 (pickling of IPv4Network was not tested).Serhiy Storchaka2015-01-181-4/+4
| |
* | Issue #23133: Pickling of ipaddress objects now produces more compact andSerhiy Storchaka2015-01-181-7/+24
| | | | | | | | portable representation.
* | Issue #23266: Much faster implementation of ipaddress.collapse_addresses() ↵Antoine Pitrou2015-01-181-1/+2
| | | | | | | | when there are many non-consecutive addresses.
* | Issue #23181: More "codepoint" -> "code point".Serhiy Storchaka2015-01-185-7/+7
|\ \ | |/
| * Issue #23181: More "codepoint" -> "code point".Serhiy Storchaka2015-01-185-7/+7
| |
| * Issue #23211: Fix patch for 3.4 differences.Ned Deily2015-01-181-3/+3
| |
* | 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
|\ \ | |/