summaryrefslogtreecommitdiffstats
path: root/Lib/test
Commit message (Collapse)AuthorAgeFilesLines
* Issue #21918: Convert test_tools.py to a sub-package of test.Zachary Ware2014-07-169-188/+549
|
* asyncio: test_as_completed(): disable "slow callback" warningVictor Stinner2014-07-161-0/+2
|
* Issue #21163: Fix "destroy pending task" warning in test_wait_errors()Victor Stinner2014-07-161-4/+7
|
* asyncio: test_selector_events: remove duplicate call to _on_handshake() methodVictor Stinner2014-07-161-3/+3
| | | | The _SelectorSslTransport constructor already calls it.
* asyncio tests: make quiet the logs of SSL handshake failures when running testsVictor Stinner2014-07-142-17/+21
| | | | in debug mode
* asyncio: sync with TulipVictor Stinner2014-07-141-2/+0
| | | | | | | | | | | | | | | | | | | | * Tulip issue #184: Log subprocess events in debug mode - Log stdin, stdout and stderr transports and protocols - Log process identifier (pid) - Log connection of pipes - Log process exit - Log Process.communicate() tasks: feed stdin, read stdout and stderr - Add __repr__() method to many classes related to subprocesses * Add BaseSubprocessTransport._pid attribute. Store the pid so it is still accessible after the process exited. It's more convinient for debug. * create_connection(): add the socket in the "connected to" debug log * Clean up some docstrings and comments. Remove unused unimplemented _read_from_self().
* Issue #21323: Fix http.server to again handle scripts in CGI subdirectories,Ned Deily2014-07-131-0/+16
|\ | | | | | | broken by the fix for security issue #19435. Patch by Zach Byrne.
| * Issue #21323: Fix http.server to again handle scripts in CGI subdirectories,Ned Deily2014-07-131-0/+16
| |\ | | | | | | | | | broken by the fix for security issue #19435. Patch by Zach Byrne.
| | * Issue #21323: Fix http.server to again handle scripts in CGI subdirectories,Ned Deily2014-07-131-0/+16
| | | | | | | | | | | | broken by the fix for security issue #19435. Patch by Zach Byrne.
* | | asyncio: sync with TulipVictor Stinner2014-07-122-9/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Tulip issue #183: log socket events in debug mode - Log most important socket events: socket connected, new client, connection reset or closed by peer (EOF), etc. - Log time elapsed in DNS resolution (getaddrinfo) - Log pause/resume reading - Log time of SSL handshake - Log SSL handshake errors - Add a __repr__() method to many classes * Fix ProactorEventLoop() in debug mode. ProactorEventLoop._make_self_pipe() doesn't call call_soon() directly because it checks for the current loop which fails, because the method is called to build the event loop. * Cleanup _ProactorReadPipeTransport constructor. Not need to set again _read_fut attribute to None, it is already done in the base class.
* | | Issue #21906: Make Tools/scripts/md5sum.py work in Python 3.Berker Peksag2014-07-111-9/+67
| | | | | | | | | | | | Patch by Zachary Ware.
* | | asyncio: sync with TulipVictor Stinner2014-07-113-7/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Tulip issue #182: Improve logs of BaseEventLoop._run_once() - Don't log non-blocking poll - Only log polling with a timeout if it gets events or if it timed out after more than 1 second. * Fix some pyflakes warnings: remove unused imports
* | | asyncio: sync with TulipVictor Stinner2014-07-101-8/+3
| | | | | | | | | | | | | | | | | | | | | - CoroWrapper.__del__() now reuses repr(CoroWrapper) to log the "... was never yielded from" warning - Improve CoroWrapper: copy also the qualified name on Python 3.4, not only on Python 3.5+
* | | asyncio: sync with TulipVictor Stinner2014-07-101-7/+42
| | | | | | | | | | | | | | | | | | | | | - repr(Task) and repr(CoroWrapper) now also includes where these objects were created. If the coroutine is not a generator (don't use "yield from"), use the location of the function, not the location of the coro() wrapper. - Fix create_task(): truncate the traceback to hide the call to create_task().
* | | asyncio: sync with TulipVictor Stinner2014-07-102-12/+60
| | | | | | | | | | | | | | | | | | | | | | | | - Issues #21936, #21163: Fix sporadic failures of test_future_exception_never_retrieved() - Handle.cancel() now clears references to callback and args - In debug mode, repr(Handle) now contains the location where the Handle was created.
* | | Issue #21942: Fixed source file viewing in pydoc's server mode on Windows.Zachary Ware2014-07-101-5/+2
| | |
* | | asyncion, Tulip issue 181: BaseEventLoop.create_datagram_endpoint() now waitsVictor Stinner2014-07-081-0/+10
| | | | | | | | | | | | | | | until protocol.connection_made() has been called. Document also why transport constructors use a waiter.
* | | asyncio: sync with TulipVictor Stinner2014-07-084-2/+43
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Tulip issue 185: Add a create_task() method to event loops. The create_task() method can be overriden in custom event loop to implement their own task class. For example, greenio and Pulsar projects use their own task class. The create_task() method is now preferred over creating directly task using the Task class. - tests: fix a warning - fix typo in the name of a test function - Update AbstractEventLoop: add new event loop methods; update also the unit test
* | | Issue #11259: asynchat.async_chat().set_terminator() now raises a ValueError ifVictor Stinner2014-07-071-0/+8
| | | | | | | | | | | | the number of received bytes is negative.
* | | asynchat: PEP8-ify the codeVictor Stinner2014-07-071-13/+18
| | |
* | | Issue #12523: asynchat.async_chat.push() now raises a TypeError if it doesn'tVictor Stinner2014-07-071-0/+16
| | | | | | | | | | | | get a bytes string
* | | Issue #21707: Fix tests on Windows.Berker Peksag2014-07-071-1/+1
| | |
* | | Merge headsSerhiy Storchaka2014-07-071-4/+12
|\ \ \
| * | | Issue #21707: Add missing kwonlyargcount argument to ↵Berker Peksag2014-07-071-4/+12
| | | | | | | | | | | | | | | | ModuleFinder.replace_paths_in_code().
* | | | Issue #21881: Just omit tests for platform-specific NaN representation in ↵Serhiy Storchaka2014-07-071-6/+2
|/ / / | | | | | | | | | test_tcl.
* | | Issue #19593: Use specific asserts in importlib tests.Serhiy Storchaka2014-07-075-7/+7
| | |
* | | Merge headsSerhiy Storchaka2014-07-074-0/+76
|\ \ \
| * | | Issue #20639: calling Path.with_suffix('') allows removing the suffix again.Antoine Pitrou2014-07-071-0/+6
| | | | | | | | | | | | | | | | Patch by July Tikhonov.
| * | | Issue #21714: Disallow the construction of invalid paths using ↵Antoine Pitrou2014-07-071-0/+8
| | | | | | | | | | | | | | | | Path.with_name(). Original patch by Antony Lee.
| * | | Closes #21886, #21447: Fix a race condition in asyncio when setting the resultVictor Stinner2014-07-052-0/+10
| | | | | | | | | | | | | | | | | | | | of a Future with call_soon(). Add an helper, a private method, to set the result only if the future was not cancelled.
| * | | Issue #21897: Fix a crash with the f_locals attribute with closure variables ↵Antoine Pitrou2014-07-051-0/+52
| | | | | | | | | | | | | | | | when frame.clear() has been called.
* | | | Issue #21881: Be more tolerant in test_tcl to not parsable by float() NaNSerhiy Storchaka2014-07-071-6/+6
|/ / / | | | | | | | | | representations (on mips and m68k platforms).
* | | Issue #21151: Fixed a segfault in the winreg module.Zachary Ware2014-07-031-1/+14
| | | | | | | | | | | | | | | | | | | | | When ``None`` was passed as a ``REG_BINARY`` value to SetValueEx, PyMem_DEL was called on an uninitialized buffer. Patch by John Ehresman. (Also an incidental typo fix in a comment in test_winreg)
* | | asyncio: sync with TulipVictor Stinner2014-07-021-0/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * _UnixSubprocessTransport: fix file mode of stdin. Open stdin in write mode, not in read mode * Examples: close the event loop at exit * More reliable CoroWrapper.__del__. If the constructor is interrupted by KeyboardInterrupt or the coroutine objet is destroyed lately, some the _source_traceback attribute doesn't exist anymore. * repr(Task): include also the future the task is waiting for
* | | Issue #18258: Fix test discovery for test_codecmaps_*.Zachary Ware2014-07-026-22/+6
| | |
* | | asyncio: Fix test_sleep_cancel(): call_later() mock has no self parameterVictor Stinner2014-07-011-2/+2
| | |
* | | asyncio: sync with TulipVictor Stinner2014-06-301-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Sort imports - Simplify/optimize iscoroutine(). Inline inspect.isgenerator(obj): replace it with isinstance(obj, types.GeneratorType) - CoroWrapper: check at runtime if Python has the yield-from bug #21209. If Python has the bug, check if CoroWrapper.send() was called by yield-from to decide if parameters must be unpacked or not. - Fix "Task was destroyed but it is pending!" warning in test_task_source_traceback()
* | | Issue #14235: Use importlib.reload() in test_cmd.test_coverage.Berker Peksag2014-06-301-1/+1
| | |
* | | Issue #20753: Skip PasswordProtectedSiteTestCase when Python is built ↵Berker Peksag2014-06-291-1/+5
| | | | | | | | | | | | without threads.
* | | asyncio: sync with Tulip, add a new asyncio.coroutines moduleVictor Stinner2014-06-281-17/+17
| | |
* | | Closes #11279: test_posix and lack of "id -G" support - less noise required? ↵Jesus Cea2014-06-281-1/+1
| | | | | | | | | | | | (Solaris)
* | | asyncio: Fix two "Coroutine xxx was never yielded from" messages in testsVictor Stinner2014-06-271-2/+6
| | |
* | | asyncio: Fix unit tests on Windows, escape filenames in regexVictor Stinner2014-06-272-6/+6
| | |
* | | Issue #11453: asyncore: emit a ResourceWarning when an unclosed file_wrapperVictor Stinner2014-06-271-0/+16
| | | | | | | | | | | | | | | object is destroyed. The destructor now closes the file if needed. The close() method can now be called twice: the second call does nothing.
* | | Closes #21582: Cleanup test_asyncore. Patch written by diana.Victor Stinner2014-06-271-36/+18
| | | | | | | | | | | | | | | | | | - Use support.captured_stderr() where appropriate - Removes some "from test.support import xxx" import and uses support.xxx instead.
* | | asyncio, Tulip issue 137: In debug mode, save traceback where Future, Task andVictor Stinner2014-06-274-6/+113
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Handle objects are created. Pass the traceback to call_exception_handler() in the 'source_traceback' key. The traceback is truncated to hide internal calls in asyncio, show only the traceback from user code. Add tests for the new source_traceback, and a test for the 'Future/Task exception was never retrieved' log.
* | | asyncio, Tulip issue 137: In debug mode, add the traceback where the coroutineVictor Stinner2014-06-271-0/+32
| | | | | | | | | | | | object was created to the "coroutine ... was never yield from" log
* | | asyncio: Oops, restore a removed testVictor Stinner2014-06-271-0/+3
| | |
* | | #21476: Unwrap fp in BytesParser so the file isn't unexpectedly closed.R David Murray2014-06-261-0/+25
| | | | | | | | | | | | This makes the behavior match that of Parser. Patch by Vajrasky Kok.
* | | Issue #21163: Fix one more "Task was destroyed but it is pending!" log in testsVictor Stinner2014-06-251-2/+6
| | |