summaryrefslogtreecommitdiffstats
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
...
* bpo-33712: OrderedDict only creates od_fast_nodes cache if needed (GH-7349)Serhiy Storchaka2018-10-191-2/+2
|
* unittest.mock doc: Fix references to recursive seal of Mocks (GH-9028)Mario Corchero2018-10-191-5/+4
| | | | | The docs in `library/unittest.mock` have been updated to remove confusing terms about submock and be explicit about the behavior expected.
* bpo-25750: Add test on bad descriptor __get__() (GH-9084)jdemeyer2018-10-191-0/+21
|
* bpo-33073: Rework int.as_integer_ratio() implementation (GH-9303)Serhiy Storchaka2018-10-191-28/+6
| | | | | * Simplify the C code. * Simplify tests and make them more strict and robust. * Add references in the documentation.
* bpo-33947: dataclasses no longer can raise RecursionError in repr (GF9916)Srinivas Thatiparthy (శ్రీనివాస్ తాటిపర్తి)2018-10-192-6/+117
| | | The reprlib code was copied here instead of importing reprlib. I'm not sure if we really need to avoid the import, but since I expect dataclasses to be more common that reprlib, it seems wise. Plus, the code is small.
* bpo-32912: Replace a DeprecationWarning with a SyntaxWarning (GH-9652)Serhiy Storchaka2018-10-192-7/+7
| | | | for invalid escape sequences in string and bytes literals.
* bpo-34866: Adding max_num_fields to cgi.FieldStorage (GH-9660)matthewbelisle-wf2018-10-194-12/+100
| | | | Adding `max_num_fields` to `cgi.FieldStorage` to make DOS attacks harder by limiting the number of `MiniFieldStorage` objects created by `FieldStorage`.
* bpo-35013: Add more type checks for children of Element. (GH-9944)Serhiy Storchaka2018-10-192-25/+27
| | | | | | It is now guarantied that children of xml.etree.ElementTree.Element are Elements (at least in C implementation). Previously methods __setitem__(), __setstate__() and __deepcopy__() could be used for adding non-Element children.
* bpo-31522: mailbox.get_string: pass `from_` parameter to `get_bytes` (#9857)Cheryl Sabella2018-10-192-1/+29
| | | This allows *from_* to be successfully set to a non-default value when calling mbox.get_string.
* bpo-34936: Fix TclError in tkinter.Spinbox.selection_element(). (GH-9760)Juliette Monsel2018-10-182-5/+12
|
* bpo-35008: Fix possible leaks in Element.__setstate__(). (GH-9924)Serhiy Storchaka2018-10-181-0/+16
| | | | | C implementation of xml.etree.ElementTree.Element.__setstate__() leaked references to children when called for already initialized element.
* bpo-24658: Fix read/write greater than 2 GiB on macOS (GH-1705)Stéphane Wirtel2018-10-171-2/+11
| | | On macOS, fix reading from and writing into a file with a size larger than 2 GiB.
* bpo-23420: Verify the value of '-s' when execute the CLI of cProfile (GH-9925)Stéphane Wirtel2018-10-172-2/+10
| | | | | | Verify the value for the parameter '-s' of the cProfile CLI. Patch by Robert Kuska. Co-authored-by: Robert Kuska <rkuska@gmail.com>
* bpo-34997: Fix test_logging.ConfigDictTest.test_out_of_order (GH-9913)Pablo Galindo2018-10-161-1/+2
| | | | | | | | When runnint test_logging with --huntrleaks after commit 18fb1fb943b7dbd7f8a76017ee2a67ef13effb85, test_out_of_order fails to raise ValueError due to the fact that the new test test_out_of_order_with_dollar_style mutates the out_of_order dictionary. Even if the test copies the dictionary first, the mutation is done in a very deep level so the original one is also affected.
* bpo-34783: Fix test_nonexisting_script() (GH-9896)Victor Stinner2018-10-151-8/+1
| | | | | | Fix test_cmd_line_script.test_nonexisting_script(): the test must not rely on sys.executable, since main.c uses config->program which can be different than sys.executable in many cases (for example, on macOS when using the framework).
* bpo-34844: logging.Formatter enhancement - Ensure style and format string ↵BNMetrics2018-10-153-22/+388
| | | | matches in logging.Formatter (GH-9703)
* bpo-34974: Do not replace unexpected errors in bytes() and bytearray(). ↵Serhiy Storchaka2018-10-141-2/+16
| | | | | | | (GH-9852) bytes and bytearray constructors converted unexpected exceptions (e.g. MemoryError and KeyboardInterrupt) to TypeError.
* bpo-34939: Allow annotated global names in module namespace (GH-9844)Pablo Galindo2018-10-141-0/+14
| | | | | | | Allow annotated global names in the module namespace after the symbol is declared as global. Previously, only symbols annotated before they are declared as global (i.e. inside a function) were allowed. This change allows symbols to be declared as global before the annotation happens in the global scope.
* bpo-34941: Fix searching Element subclasses. (GH-9766)Serhiy Storchaka2018-10-141-0/+15
| | | | Methods find(), findtext() and findall() of xml.etree.ElementTree.Element were not able to find chldren which are instances of Element subclasses.
* bpo-33656: Move pyshell ctypes import inside try block. (GH-9858)Terry Jan Reedy2018-10-141-3/+3
| | | | A Windows build with _tkinter, tkinter, and idlelib but without ctypes is unlikely but apparently possible.
* bpo-34970: Protect tasks weak set manipulation in asyncio.all_tasks() (GH-9837)Andrew Svetlov2018-10-131-2/+6
| | | https://bugs.python.org/issue34970
* Add new tests for bytes and bytearray constructors. (GH-9843)Serhiy Storchaka2018-10-131-3/+43
| | | | Covered all special cases: bytes, tuple, list, differend kinds of iterables and iterators.
* bpo-16965: 2to3 now rewrites execfile() to open with 'rb'. (GH-8569)Zackery Spytz2018-10-132-9/+10
|
* bpo-22872: multiprocessing.Queue's put() and get() now raise ValueError if ↵Zackery Spytz2018-10-132-2/+14
| | | | | | | the queue is closed. (GH-9010) Previously, put() and get() would raise AssertionError and OSError, respectively.
* bpo-34783: Disable test_nonexisting_script for macOS framework builds (GH-9831)Ned Deily2018-10-131-0/+4
| | | | | | | | | With macOS framework builds, test case test_nonexisting_script in test_nonexisting_script fails because the test case assumes that the file name in sys.executable will appear in the error message. For macOS framework builds, sys.executable is the file name of the stub launcher and its file name bears no relationship to the file name of the actual python executable. For now, skip the test in this case.
* bpo-23831: Add moveto method to the tkinter.Canvas widget. (GH-9768)Juliette Monsel2018-10-122-0/+32
|
* bpo-34964: Make Tkinter sources more readable by adding blank lines. (GH-9822)Serhiy Storchaka2018-10-128-9/+565
|
* bpo-34900: Make TestCase.debug() work with subtests (GH-9707)Bruno Oliveira2018-10-122-1/+15
|
* bpo-31516: Skip test_main_thread_during_shutdown() with COUNT_ALLOCS builds. ↵Zackery Spytz2018-10-121-0/+1
| | | | (GH-8052)
* bpo-34922: Fix integer overflow in the digest() and hexdigest() methods ↵Serhiy Storchaka2018-10-111-0/+13
| | | | | (GH-9751) for the SHAKE algorithm in the hashlib module.
* bpo-34022: Stop forcing of hash-based invalidation with SOURCE_DATE_EPOCH ↵Elvis Pranskevichus2018-10-105-22/+142
| | | | | | | | | | | | | | | | | | | | (GH-9607) Unconditional forcing of ``CHECKED_HASH`` invalidation was introduced in 3.7.0 in bpo-29708. The change is bad, as it unconditionally overrides *invalidation_mode*, even if it was passed as an explicit argument to ``py_compile.compile()`` or ``compileall``. An environment variable should *never* override an explicit argument to a library function. That change leads to multiple test failures if the ``SOURCE_DATE_EPOCH`` environment variable is set. This changes ``py_compile.compile()`` to only look at ``SOURCE_DATE_EPOCH`` if no explicit *invalidation_mode* was specified. I also made various relevant tests run with explicit control over the value of ``SOURCE_DATE_EPOCH``. While looking at this, I noticed that ``zipimport`` does not work with hash-based .pycs _at all_, though I left the fixes for subsequent commits.
* bpo-34926: Make mimetypes.guess_type accept os.PathLike objects (GH-9777)Mayank Asthana2018-10-102-1/+26
| | | | :meth:`mimetypes.MimeTypes.guess_type` now accepts :term:`path-like object` in addition to url strings.
* bpo-33613: Fix test_semaphore_tracker signal tests when using -Werror (GH-9778)Pablo Galindo2018-10-101-2/+4
| | | | | | Tests involving sending signals to the semaphore_tracker will not fail anymore due to the fact that running the test suite with -Werror propagates warnings as errors. Fix a missing assertion when the semaphore_tracker is expected to die.
* bpo-23596: Use argparse for the command line of gzip (GH-9781)Stéphane Wirtel2018-10-091-13/+12
| | | | Co-authored-by: Antony Lee <anntzer.lee@gmail.com>
* bpo-23596: Add unit tests for the command line for the gzip module (GH-9775)Stéphane Wirtel2018-10-091-6/+93
| | | | Add unit tests for the command line for the gzip module
* bpo-34769: Thread safety for _asyncgen_finalizer_hook(). (GH-9716)twisteroid ambassador2018-10-092-4/+69
|
* bpo-32962: Fix test_gdb failure in debug build with -mcet -fcf-protection ↵Victor Stinner2018-10-091-1/+32
| | | | | | | | | | | | | -O0 (GH-9656) When Python is built with the intel control-flow protection flags, -mcet -fcf-protection, gdb is not able to read the stack without actually jumping inside the function. This means an extra 'next' command is required to make the $pc (program counter) enter the function and make the stack of the function exposed to gdb. Co-Authored-By: Marcel Plch <gmarcel.plch@gmail.com> (cherry picked from commit 9b7c74ca32d1bec7128d550a9ab1b2ddc7046287)
* bpo-32680 add default "sock" on SMTP objects (#5345)Romuald Brunet2018-10-092-1/+10
| | | | By default the smtplib.SMTP objects did not have a sock attribute, it was only created during connect()
* Extract sendfile tests into a separate test file (#9757)Andrew Svetlov2018-10-092-450/+551
|
* bpo-34758: add .wasm to recognized file extensions in mimetypes module (GH-9464)travisoneill2018-10-091-0/+1
|
* Extract tests for sock_*() functions into a separate file (GH-9761)Andrew Svetlov2018-10-082-130/+238
|
* bpo-31715 Add mimetype for extension .mjs (#3908)Bradley Meck2018-10-081-0/+1
|
* bpo-34921: Allow escaped NoReturn in get_type_hints (GH-9750)Noah Wood2018-10-081-1/+1
|
* bpo-34911: Added support for secure websocket cookies (GH-9734)Paul Bailey2018-10-082-1/+58
|
* bpo-34829: Add missing selection_ methods to the Tkinter Spinbox. (GH-9617)Juliette Monsel2018-10-082-0/+68
| | | | | Implement the methods selection_from(), selection_range(), selection_present() and selection_to() for Tkinter Spinbox.
* bpo-34906: Doc: Fix typos (2) (GH-9735)Stéphane Wirtel2018-10-061-3/+3
| | | Fix typos
* bpo-34909: keep searching mixins until base class is found (GH-9737)Ethan Furman2018-10-062-3/+22
|
* Use assertEqual() instead of assertEquals(). (GH-9721)Serhiy Storchaka2018-10-052-2/+2
| | | Fixes warnings in tests added in bpo-32117 and bpo-34603.
* Simplify flags checks in sre_compile.py. (GH-9718)Serhiy Storchaka2018-10-051-5/+5
| | | Flags SRE_FLAG_UNICODE and SRE_FLAG_ASCII are mutually exclusive.
* bpo-34906: Doc: Fix typos (GH-9712)Stéphane Wirtel2018-10-051-1/+1
|