aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Lib/test
Commit message (Collapse)AuthorAge
* Issue #22044: Fixed premature DECREF in call_tzinfo_method.Raymond Hettinger2014-07-25
|
* Merge.Charles-François Natali2014-07-25
|\
| * asyncio, test_subprocess: relax timings for slow builbotsVictor Stinner2014-07-25
| |
| * asyncio: sync with TulipVictor Stinner2014-07-25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Improve stability of the proactor event loop, especially operations on overlapped objects: * Tulip issue 195: Don't call UnregisterWait() twice if a _WaitHandleFuture is cancelled twice to fix a crash. * IocpProactor.close(): cancel futures to cancel overlapped operations, instead of cancelling directly overlapped operations. Future objects may not call ov.cancel() if the future was cancelled or if the overlapped was already cancelled. The cancel() method of the future may also catch exceptions. Log also errors on cancellation. * tests: rename "f" to "fut" * Add a __repr__() method to IocpProactor * Add a destructor to IocpProactor which closes it * _OverlappedFuture.cancel() doesn't cancel the overlapped anymore if it is done: if it is already cancelled or completed. Log also an error if the cancellation failed. * Add the address of the overlapped object in repr(_OverlappedFuture) * _OverlappedFuture truncates the source traceback to hide the call to the parent constructor (useless in debug).
| * Issue #16133: The asynchat.async_chat.handle_read() method now ignoresVictor Stinner2014-07-24
| | | | | | | | | | | | BlockingIOError exceptions. Initial patch written by Xavier de Gaye. Document also in asyncore documentation that recv() may raise BlockingIOError.
| * Issue #19884: readline: Disable the meta modifier key if stdout is not aVictor Stinner2014-07-24
| | | | | | | | | | | | terminal to not write the ANSI sequence "\033[1034h" into stdout. This sequence is used on some terminal (ex: TERM=xterm-256color") to enable support of 8 bit characters.
| * test_gettext: use support.rmtree() instead of shutil.rmtree()Victor Stinner2014-07-24
| |
| * asyncio tests: relax timings for slow buildbotsVictor Stinner2014-07-24
| |
| * Issue #22002: Make full use of test discovery in test sub-packages.Zachary Ware2014-07-23
| | | | | | | | | | | | Adds `load_package_tests` function to test.support, uses it in test_asyncio, test_email, test_json, test_tools, test_importlib and all test_importlib sub-packages to implement test discovery.
| * asyncio: sync with TulipVictor Stinner2014-07-23
| | | | | | | | | | * Tulip issue 194: Don't use sys.getrefcount() in unit tests * signal.set_wakeup_fd() can now raise an OSError on Python 3.5
| * Issue #21888: plistlib's load() and loads() now work if the fmt parameter isSerhiy Storchaka2014-07-23
| | | | | | | | specified.
* | Issue #19875: Fix random test_getsockaddrarg() failure.Charles-François Natali2014-07-25
|/
* Issue #21901: Cap the maximum number of file descriptors to use for the test.Charles-François Natali2014-07-22
|
* Fix localhost checking in FileHandler. Raised in #21970.Senthil Kumaran2014-07-22
|
* Issue #21976: Fix test_ssl to accept LibreSSL version strings.Antoine Pitrou2014-07-21
| | | | Thanks to William Orr.
* Issue #19629: Add missing "import stat"Victor Stinner2014-07-21
| | | | Sort also imports in support/__init__.py
* Issue #19811, #22022: test_pathlib uses support.rmtree() instead ofVictor Stinner2014-07-21
| | | | shutil.rmtree() to remove the temporary directory.
* Issue #19629: Fix support.rmtree(), use os.lstat() to check if the file is aVictor Stinner2014-07-21
| | | | directory, not os.path.isdir()
* asyncio: Fix test_stdin_broken_pipe(), drain() is not a coroutineVictor Stinner2014-07-21
|
* Issue #21247: Fix a race condition in test_send_signal() of asyncioVictor Stinner2014-07-17
| | | | | Add a basic synchronization mechanism to wait until the child process is ready before sending it a signal.
* Python issue #21645, Tulip issue 192: Rewrite signal handlingVictor Stinner2014-07-17
| | | | | | | | | | | | | | | | | | | Since Python 3.3, the C signal handler writes the signal number into the wakeup file descriptor and then schedules the Python call using Py_AddPendingCall(). asyncio uses the wakeup file descriptor to wake up the event loop, and relies on Py_AddPendingCall() to schedule the final callback with call_soon(). If the C signal handler is called in a thread different than the thread of the event loop, the loop is awaken but Py_AddPendingCall() was not called yet. In this case, the event loop has nothing to do and go to sleep again. Py_AddPendingCall() is called while the event loop is sleeping again and so the final callback is not scheduled immediatly. This patch changes how asyncio handles signals. Instead of relying on Py_AddPendingCall() and the wakeup file descriptor, asyncio now only relies on the wakeup file descriptor. asyncio reads signal numbers from the wakeup file descriptor to call its signal handler.
* asyncio: Fix test_stdin_broken_pipe(), drain() can also raiseVictor Stinner2014-07-17
| | | | ConnectionResetError
* asyncio, tulip issue 190: Process.communicate() must ignore BrokenPipeErrorVictor Stinner2014-07-17
| | | | | | | | If you want to handle the BrokenPipeError, you can easily reimplement communicate(). Add also a unit test to ensure that stdin.write() + stdin.drain() raises BrokenPipeError.
* Issue 21044: tarfile.open() now handles fileobj with an integer 'name'Serhiy Storchaka2014-07-16
| | | | attribute. Based on patch by Martin Panter.
* Issue #21918: Convert test_tools.py to a sub-package of test.Zachary Ware2014-07-16
|
* asyncio: test_as_completed(): disable "slow callback" warningVictor Stinner2014-07-16
|
* Issue #21163: Fix "destroy pending task" warning in test_wait_errors()Victor Stinner2014-07-16
|
* asyncio: test_selector_events: remove duplicate call to _on_handshake() methodVictor Stinner2014-07-16
| | | | The _SelectorSslTransport constructor already calls it.
* asyncio tests: make quiet the logs of SSL handshake failures when running testsVictor Stinner2014-07-14
| | | | in debug mode
* asyncio: sync with TulipVictor Stinner2014-07-14
| | | | | | | | | | | | | | | | | | | | * 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-12
|\ | | | | | | 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-12
| |\ | | | | | | | | | 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-12
| | | | | | | | | | | | broken by the fix for security issue #19435. Patch by Zach Byrne.
* | | asyncio: sync with TulipVictor Stinner2014-07-12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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-11
| | | | | | | | | | | | Patch by Zachary Ware.
* | | asyncio: sync with TulipVictor Stinner2014-07-11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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-11
| | | | | | | | | | | | | | | | | | | | | - 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-11
| | | | | | | | | | | | | | | | | | | | | - 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-10
| | | | | | | | | | | | | | | | | | | | | | | | - 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-10
| | |
* | | asyncion, Tulip issue 181: BaseEventLoop.create_datagram_endpoint() now waitsVictor Stinner2014-07-08
| | | | | | | | | | | | | | | until protocol.connection_made() has been called. Document also why transport constructors use a waiter.
* | | asyncio: sync with TulipVictor Stinner2014-07-08
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - 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-08
| | | | | | | | | | | | the number of received bytes is negative.
* | | asynchat: PEP8-ify the codeVictor Stinner2014-07-08
| | |
* | | Issue #12523: asynchat.async_chat.push() now raises a TypeError if it doesn'tVictor Stinner2014-07-08
| | | | | | | | | | | | get a bytes string
* | | Issue #21707: Fix tests on Windows.Berker Peksag2014-07-07
| | |
* | | Merge headsSerhiy Storchaka2014-07-07
|\ \ \
| * | | Issue #21707: Add missing kwonlyargcount argument to ↵Berker Peksag2014-07-07
| | | | | | | | | | | | | | | | ModuleFinder.replace_paths_in_code().
* | | | Issue #21881: Just omit tests for platform-specific NaN representation in ↵Serhiy Storchaka2014-07-07
|/ / / | | | | | | | | | test_tcl.
* | | Issue #19593: Use specific asserts in importlib tests.Serhiy Storchaka2014-07-07
| | |