summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* bpo-31234: Join timers in test_threading (#3598)Victor Stinner2017-09-151-0/+2
| | | | Call the .join() method of threading.Timer timers to prevent the "threading_cleanup() failed to cleanup 1 threads" warning.
* bpo-31464: asdl_c.py no longer emits trailing spaces in Python-ast.h. (#3568)Serhiy Storchaka2017-09-152-61/+62
|
* bpo-31338 (#3374)Barry Warsaw2017-09-1522-111/+128
| | | | | | | * Add Py_UNREACHABLE() as an alias to abort(). * Use Py_UNREACHABLE() instead of assert(0) * Convert more unreachable code to use Py_UNREACHABLE() * Document Py_UNREACHABLE() and a few other macros.
* bpo-31480: IDLE - fix tests to pass with zzdummy extension disabled. (#3590)Terry Jan Reedy2017-09-144-45/+41
| | | Enabled by default was a temporary expedient. The fix is to add a user override to enable.
* bpo-31128: Allow pydoc to bind to arbitrary hostnames (#3011)Feanil Patel2017-09-145-19/+39
| | | | New -n flag allow overriding localhost with custom value, for example to run from containers.
* bpo-30860: Fix deadcode in obmalloc.c (#3499)Victor Stinner2017-09-141-2/+2
| | | | | | Fix Coverity CID 1417587: _PyMem_Initialize() contains code which is never executed. Replace the runtime check with a build assertion.
* bpo-31234: Add support.join_thread() helper (#3587)Victor Stinner2017-09-149-65/+50
| | | | join_thread() joins a thread but raises an AssertionError if the thread is still alive after timeout seconds.
* bpo-31234: Join threads in test_queue (#3586)Victor Stinner2017-09-141-21/+25
| | | Call thread.join() to prevent the "dangling thread" warning.
* bpo-31234: Add test.support.wait_threads_exit() (#3578)Victor Stinner2017-09-146-109/+161
| | | | Use _thread.count() to wait until threads exit. The new context manager prevents the "dangling thread" warning.
* bpo-31234: Join threads in test_threading (#3579)Victor Stinner2017-09-141-0/+4
| | | Call thread.join() to prevent the "dangling thread" warning.
* bpo-31455: Fix an assertion failure in ElementTree.XMLParser(). (#3545)scoder2017-09-143-2/+60
| | | | | | * Avoid calling "PyObject_GetAttrString()" (and potentially executing user code) with a live exception set. * Ignore only AttributeError on attribute lookups in ElementTree.XMLParser() and propagate all other exceptions.
* bpo-31471: Fix assertion failure in subprocess.Popen() on Windows, in case ↵Oren Milman2017-09-143-1/+16
| | | | env has a bad keys() method. (#3580)
* bpo-28556: typing.get_type_hints: better globalns for classes and modules ↵Łukasz Langa2017-09-144-22/+96
| | | | | | | | | | | | | | | (#3582) This makes the default behavior (without specifying `globalns` manually) more predictable for users, finds the right globalns automatically. Implementation for classes assumes has a `__module__` attribute and that module is present in `sys.modules`. It does this recursively for all bases in the MRO. For modules, the implementation just uses their `__dict__` directly. This is backwards compatible, will just raise fewer exceptions in naive user code. Originally implemented and reviewed at https://github.com/python/typing/pull/470.
* bpo-28411: Isolate PyInterpreterState.modules (#3575)Eric Snow2017-09-1410-55/+116
| | | | | A bunch of code currently uses PyInterpreterState.modules directly instead of PyImport_GetModuleDict(). This complicates efforts to make changes relative to sys.modules. This patch switches to using PyImport_GetModuleDict() uniformly. Also, a number of related uses of sys.modules are updated for uniformity for the same reason. Note that this code was already reviewed and merged as part of #1638. I reverted that and am now splitting it up into more focused parts.
* bpo-31234: Join threads in test_hashlib (#3573)Victor Stinner2017-09-141-13/+13
| | | | | | | | | | * bpo-31234: Join threads in test_hashlib Use thread.join() to wait until the parallel hash tasks complete rather than using events. Calling thread.join() prevent "dangling thread" warnings. * test_hashlib: minor PEP 8 coding style fixes
* bpo-31234: Join threads in tests (#3572)Victor Stinner2017-09-144-3/+15
| | | | Call thread.join() on threads to prevent the "dangling threads" warning.
* bpo-31457: Allow for nested LoggerAdapter objects (#3551)Łukasz Langa2017-09-143-0/+33
| | | | | | Some of the proxied methods use internal Logger state which isn't proxied, causing failures if an adapter is applied to another adapter. This commit fixes the issue, adds a new test for the use case.
* _ssl_: Fix compiler warning (#3559)Victor Stinner2017-09-141-1/+1
| | | | | | | Cast Py_buffer.len (Py_ssize_t, signed) to size_t (unsigned) to prevent the following warning: Modules/_ssl.c:3089:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
* bpo-30860: Fix a refleak. (#3567)Eric Snow2017-09-147-43/+47
| | | | | Resolves bpo-31420. (This was accidentally reverted when in #3565.)
* bpo-31404: Revert "remove modules from Py_InterpreterState (#1638)" (#3565)Eric Snow2017-09-1421-308/+154
| | | PR #1638, for bpo-28411, causes problems in some (very) edge cases. Until that gets sorted out, we're reverting the merge. PR #3506, a fix on top of #1638, is also getting reverted.
* bpo-31462: Remove trailing whitespaces. (#3564)Serhiy Storchaka2017-09-1421-62/+62
|
* Improve code examples in hashlib cookie signing (GH-3562)sww2017-09-141-3/+4
| | | | | The `blake2b` function does not take the `data` keyword argument. The hex digest returned by sign was a string, whereas compare_digest expects bytes-like objects. Typo fix: compare_digesty -> compare_digest
* bpo-30246: fix several error messages which only mention bytes in struct (#1421)Xiang Zhang2017-09-141-4/+5
|
* bpo-31458: Update Misc/NEWS link in What's New page (GH-3555)Mariatta2017-09-132-2/+2
| | | | Update the link from Misc/NEWS to Misc/NEWS.d
* bpo-31234: Try to fix lock_tests warning (#3557)Victor Stinner2017-09-131-0/+8
| | | | | | | Try to fix the "Warning -- threading_cleanup() failed to cleanup 1 threads" warning in test.lock_tests: wait a little bit longer to give time to the threads to complete. Warning seen on test_thread and test_importlib.
* bpo-28556: Minor updates to typing module (#3550)Ivan Levkivskyi2017-09-133-50/+38
| | | | * Copy changes to typing from upstream repo * Add NEWS entry
* bpo-31418: Fix an assertion failure in PyErr_WriteUnraisable() in case of an ↵Oren Milman2017-09-132-1/+3
| | | | exception with a bad __module__ attribute. (#3539)
* bpo-31234: threading_cleanup() now warns immediately (#3138)Victor Stinner2017-09-131-9/+19
| | | | | | support.threading_cleanup() waits for 1 second before emitting a warning if there are threads running in the background. With this change, it now emits the warning immediately, to be able to catch bugs more easily.
* Update subprocess.communicate() docstring.Joel Schaerer2017-09-131-3/+3
| | | Explicitly state that communicate() closes stdin after writing input to it.
* bpo-31234, socket.create_connection(): Fix ref cycle (#3546)Victor Stinner2017-09-132-0/+4
|
* bpo-31234: Fix dangling thread in test_ftplib (#3544)Victor Stinner2017-09-131-0/+2
| | | Clear also self.server_thread attribute in TestTimeouts.tearDown().
* bpo-31448, test_poplib: Fix ResourceWarning (#3542)Victor Stinner2017-09-131-3/+3
| | | Call POP3.close(), don't close close directly the sock attribute.
* Travis CI: run coverage test using --fail-env-changed (#3541)Victor Stinner2017-09-131-1/+1
|
* bpo-31234: Fix dangling thread in test_ftp/poplib (#3540)Victor Stinner2017-09-132-1/+12
| | | | Explicitly clear the server attribute in test_ftplib and test_poplib to prevent dangling thread.
* bpo-31233: socketserver.ThreadingMixIn.server_close() (#3523)Victor Stinner2017-09-133-11/+19
| | | | | | | | | socketserver.ThreadingMixIn now keeps a list of non-daemonic threads to wait until all these threads complete in server_close(). Reenable test_logging skipped tests. Fix SocketHandlerTest.tearDown(): close the socket handler before stopping the server, so the server can join threads.
* bpo-30830: logging.config.listen() calls server_close() (#3524)Victor Stinner2017-09-131-1/+1
| | | | | | | | | | The ConfigSocketReceiver.serve_until_stopped() method from logging.config.listen() now calls server_close() (of socketserver.ThreadingTCPServer) rather than closing manually the socket. While this change has no effect yet, it will help to prevent dangling threads once ThreadingTCPServer.server_close() will join spawned threads (bpo-31233).
* Mention enum as an ex (#2982)Louie Lu2017-09-131-2/+2
|
* bpo-31394: Make tokenize.rst PEP 8-compliant (GH-3526)Mariatta2017-09-131-2/+3
| | | The last commit contained lines longer than 80 characters.
* bpo-31394: Clarify documentation about token type attribute (GH-3469)Aivar Annamaa2017-09-131-2/+2
| | | | Make it clear that Ellipsis tokens also have type attribute set to token.OP.
* bpo-31249: Fix test_concurrent_futures dangling thread (#3521)Victor Stinner2017-09-131-0/+3
| | | | ProcessPoolShutdownTest.test_del_shutdown() now closes the call queue and joins its thread, to prevent leaking a dangling thread.
* bpo-31234: Enhance test_thread.test_forkinthread() (#3516)Victor Stinner2017-09-121-12/+19
| | | | | | | | | | | * test_thread.test_forkinthread() now waits until the thread completes. * Check the status in the test method, not in the thread function * Don't ignore RuntimeError anymore: since the commit 346cbd351ee0dd3ab9cb9f0e4cb625556707877e (bpo-16500, os.register_at_fork(), os.fork() cannot fail anymore with RuntimeError. * Replace 0.01 literal with a new POLL_SLEEP constant * test_forkinthread(): test if os.fork() exists rather than testing the platform.
* bpo-31428: Prevent raising a SystemError in case the memo arg of ↵Oren Milman2017-09-122-5/+24
| | | | ElementTree.Element.__deepcopy__() isn't a dictionary. (#3512)
* bpo-31421: Document how IDLE runs tkinter programs. (#3513)Terry Jan Reedy2017-09-123-16/+63
| | | | IDLE calls tcl/tk update in the background in order to make live interaction and experimentatin with tkinter applications much easier.
* bpo-27099: Finish updating IDLE doc and help text. (#3510)Terry Jan Reedy2017-09-122-20/+11
| | | | As needed for the conversion of extensions to features.
* bpo-30860: Move windows.h include out of internal/*.h. (#3458)Eric Snow2017-09-124-20/+19
| | | PR #3397 introduced a large number of warnings to the Windows build. This patch fixes them.
* bpo-30860: Fix a refleak. (#3506)Eric Snow2017-09-127-43/+47
| | | | | | | | | | | | | | * Drop warnoptions from PyInterpreterState. * Drop xoptions from PyInterpreterState. * Don't set warnoptions and _xoptions again. * Decref after adding to sys.__dict__. * Drop an unused macro. * Check sys.xoptions *before* we delete it.
* bpo-30860: Always provide serialno. (#3507)Eric Snow2017-09-121-1/+1
| | | This fixes bpo-31407.
* bpo-31416: Fix assertion failures in case of a bad warnings.filters or ↵Oren Milman2017-09-113-3/+33
| | | | | warnings.defaultaction. (#3496) Patch by Oren Milman.
* bpo-30928: Update idlelib/NEWS.txt to 2017-09-11. (#3503)Terry Jan Reedy2017-09-111-0/+46
|
* bpo-31414: IDLE -- fix tk entry box tests by deleting first. (#3501)Terry Jan Reedy2017-09-112-11/+19
| | | | | Adding to an int entry is not the same as deleting and inserting because int('') will fail.