aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* [codemod] Fix non-matching bracket pairs (GH-28473)Mohamad Mansour2021-09-2229-33/+35
| | | | | Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu> Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> Co-authored-by: Łukasz Langa <lukasz@langa.pl>
* [tests] Add missing assert against expected tracebacks in test_exceptions.py ↵andrei kulakov2021-09-221-0/+1
| | | | (GH-28484)
* bpo-45234: Fix FileNotFound exception raised instead of IsADirectoryError in ↵andrei kulakov2021-09-213-29/+73
| | | | | shutil.copyfile() (GH-28421) This was a regression from fixing BPO-43219.
* bpo-45061: Detect refcount bug on empty string singleton (GH-28504)Victor Stinner2021-09-212-20/+40
| | | | | | | Detect refcount bugs in C extensions when the empty Unicode string singleton is destroyed by mistake. * Move forward declarations to the top of unicodeobject.c. * Simplifiy unicode_is_singleton().
* bpo-45216: Remove extraneous method docs from `difflib` (GH-28445)Nikita Sobolev2021-09-212-40/+2
|
* bpo-45061: Detect refcount bug on empty tuple singleton (GH-28503)Victor Stinner2021-09-216-5/+41
| | | | | | Detect refcount bugs in C extensions when the empty tuple singleton is destroyed by mistake. Add the _Py_FatalRefcountErrorFunc() function.
* bpo-45209: fix `UserWarning: resource_tracker` in test_multiprocessing ↵Nikita Sobolev2021-09-212-0/+9
| | | | (GH-28377)
* bpo-24076: Fix reference in sum() introduced by GH-28469 (GH-28493)Pablo Galindo Salgado2021-09-211-1/+2
|
* bpo-45246: Document that sorted() only uses "<" comparisons (GH-28494)Raymond Hettinger2021-09-211-0/+9
|
* bpo-45200: Ignore test_multiprocessing_* in ASAN build due to false ↵Pablo Galindo Salgado2021-09-211-1/+1
| | | | positives (GH-28492)
* bpo-44958: Fix ref. leak introduced in GH-27844 (GH-28490)Erlend Egeberg Aasland2021-09-212-30/+36
| | | | | | Modify managed_connect() helper to support in-memory databases. Use it for the regression tests added in GH-27844. Automerge-Triggered-By: GH:pablogsal
* bpo-44958: Only reset `sqlite3` statements when needed (GH-27844)Erlend Egeberg Aasland2021-09-214-46/+82
|
* bpo-24076: Inline single digit unpacking in the integer fastpath of sum() ↵scoder2021-09-212-1/+10
| | | | (GH-28469)
* bpo-45021: Fix a hang in forked children (GH-28007)nullptr2021-09-203-0/+21
| | | _global_shutdown_lock should be reinitialized in forked children
* bpo-45155: Apply new byteorder default values for int.to/from_bytes (GH-28465)Raymond Hettinger2021-09-205-15/+15
|
* bpo-44848: Update Windows installer to use SQLite 3.36.0 (GH-27622)Erlend Egeberg Aasland2021-09-204-3/+4
|
* bpo-45229: Make pickle tests discoverable (GH-28467)Serhiy Storchaka2021-09-203-47/+36
|
* bpo-1514420: Do not attempt to open files with names in <>s when formatting ↵Irit Katriel2021-09-202-0/+10
| | | | | | an exception (GH-28143) Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> Co-authored-by: Łukasz Langa <lukasz@langa.pl>
* bpo-40497: Fix handling of check in subprocess.check_output() (GH-19897)Rémi Lapeyre2021-09-203-2/+15
| | | | Co-authored-by: Tal Einat <taleinat@gmail.com> Co-authored-by: Łukasz Langa <lukasz@langa.pl>
* bpo-45055: Add retry when downloading externals on Windows (GH-28399)Steve Dower2021-09-201-1/+18
| | | Co-authored-by: Łukasz Langa <lukasz@langa.pl>
* bpo-45229: Use doctest.DocTestSuite instead of run_doctest (GH-28468)Serhiy Storchaka2021-09-2017-188/+122
| | | Alo use load_tests() for adding tests.
* bpo-40413: test_embed tests calling Py_RunMain() multiple times (GH-28466)Victor Stinner2021-09-202-4/+24
| | | | | | Calling Py_InitializeFromConfig()+Py_RunMain() multiple times must not crash. Cleanup also test_get_argc_argv().
* Docs: Clarify the before_and_after() example (GH-28458)Raymond Hettinger2021-09-192-6/+8
|
* bpo-45041: Simplify `sqlite3.Cursor.executescript()` (GH-28020)Erlend Egeberg Aasland2021-09-191-42/+25
|
* bpo-45040: Simplify sqlite3 transaction control functions (GH-28019)Erlend Egeberg Aasland2021-09-192-63/+28
|
* bpo-45128: fixes `test_multiprocessing_fork` mysterious crash (GH-28387)Nikita Sobolev2021-09-192-3/+6
|
* bpo-30637: Improve the docs of ast.parse regarding differences with ↵Pablo Galindo Salgado2021-09-191-0/+13
| | | | compile() (GH-28459)
* Clean up initialization __class_getitem__ with Py_GenericAlias. (GH-28450)Serhiy Storchaka2021-09-1917-21/+21
| | | | | The cast to PyCFunction is redundant. Overuse of redundant casts can hide actual bugs.
* bpo-45229: Fix setUpModule in test_ssl (GH-28454)Serhiy Storchaka2021-09-191-2/+0
|
* bpo-45229: Remove test_main in many tests (GH-28405)Serhiy Storchaka2021-09-1961-485/+209
| | | | | | | | | Instead of explicitly enumerate test classes for run_unittest() use the unittest ability to discover tests. This also makes these tests discoverable and runnable with unittest. load_tests() can be used for dynamic generating tests and adding doctests. setUpModule(), tearDownModule() and addModuleCleanup() can be used for running code before and after all module tests.
* bpo-30856: Update TestResult early, without buffering in _Outcome (GH-28180)Serhiy Storchaka2021-09-197-65/+76
| | | | | | | TestResult methods addFailure(), addError(), addSkip() and addSubTest() are now called immediately after raising an exception in test or finishing a subtest. Previously they were called only after finishing the test clean up.
* bpo-36674: Honour the skipping decorators in TestCase.debug() (GH-28446)Serhiy Storchaka2021-09-183-1/+77
| | | | | | | | unittest.TestCase.debug() raises now a SkipTest if the class or the test method are decorated with the skipping decorator. Previously it only raised a SkipTest if the test method was decorated with other decorator in addition to the skipping decorator, or if SkipTest was explicitly raised in the test or setup methods.
* bpo-45198: __set_name__ documentation not clear about its usage with ↵Raymond Hettinger2021-09-182-30/+36
| | | | non-descriptor classes (GH-28439)
* bpo-45235: Fix argparse overrides namespace with subparser defaults (GH-28420)Adam Schwalm2021-09-173-6/+15
|
* Fix minor typo in Doc/c-api/type.rst (GH-28432)Konstantin Popov2021-09-181-1/+1
| | | retreived-> retrieved
* bpo-45183: don't raise an exception when calling ↵Brett Cannon2021-09-173-2/+6
| | | | | zipimport.zipimporter.find_spec() when the zip file is missing and the internal cache has been reset (GH-28435) This can occur when the zip file gets deleted, you call zipimport.zipimporter.invalidate_cache(), and then try to use zipimport.zipimporter.find_spec() (i.e. you left the zip file path on sys.path).
* bpo-44640: Improve punctuation consistency in isinstance/issubclass error ↵wyz23x22021-09-181-2/+2
| | | | | messages (GH-27144) Co-authored-by: Łukasz Langa <lukasz@langa.pl>
* [doc] Clarify exception in `multiprocessing.cpu_count` (GH-23660)Emmanuel Arias2021-09-181-1/+2
| | | | | Previous wording didn't explain the slightly unintuitive behavior. Co-authored-by: kj <28750310+Fidget-Spinner@users.noreply.github.com>
* bpo-45020: Freeze os, site, and codecs. (gh-28398)Eric Snow2021-09-179-31/+79
| | | https://bugs.python.org/issue45020
* Fix missing space with help for `-m compileall -o` (GH-27591)Daniel Hahler2021-09-181-3/+3
|
* bpo-42038: fix description of returned list of lines (GH-27529)andrei kulakov2021-09-181-6/+6
|
* [doc] Add a missing apostrophe in a code example in venv.rst (GH-28391)Arkaprabha Chakraborty2021-09-171-1/+1
|
* bpo-45116: Py_DEBUG ignores Py_ALWAYS_INLINE (GH-28419)Victor Stinner2021-09-172-1/+13
| | | | If the Py_DEBUG macro is defined, the Py_ALWAYS_INLINE macro does nothing.
* bpo-45187: Fix dangling threads in test_socket.CreateServerFunctionalTest ↵Serhiy Storchaka2021-09-171-9/+3
| | | | (GH-28422)
* bpo-45020: Fix build out of source tree (GH-28410)Victor Stinner2021-09-172-17/+23
| | | | | | * Makefile.pre.in: Add $(srcdir) when needed, remove it when it was used by mistake. * freeze_modules.py tool uses ./Programs/_freeze_module if the executable doesn't exist in the source tree.
* bpo-45231: update_file.py preserves end of line (GH-28411)Victor Stinner2021-09-171-1/+13
| | | | | | The update_file.py tool now preserves the end of line of the updated file. Fix the "make regen-frozen" command: it no longer changes the end of line of PCbuild/ files on Unix. Git changes the end of line depending on the platform.
* Remove compatibility check for Python versions below 2.2. (GH-28314)Omer Katz2021-09-171-5/+4
| | | | | | `os.path.realpath()` already exists in all our supported Python versions. There's no longer a need to check if it exists or not. Co-authored-by: Łukasz Langa <lukasz@langa.pl>
* bpo-45212: Add a comment for time.sleep() in tests (GH-28414)Serhiy Storchaka2021-09-171-0/+1
| | | | Co-authored-by: Victor Stinner <vstinner@python.org>
* bpo-45116: Add the Py_ALWAYS_INLINE macro (GH-28390)Victor Stinner2021-09-173-0/+44
| | | | | Add the Py_ALWAYS_INLINE macro to ask the compiler to always inline a static inline function. The compiler can ignore it and decides to not inline the function.
* bpo-45219: Factor dictkey indexing (GH-28389)Mark Shannon2021-09-173-63/+106
|