summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* gh-109485: Further improve `test_future_stmt` tests (#109486)Nikita Sobolev2023-09-1911-115/+106
| | | | Add assertSyntaxError() which run tests with an additional docstring and without docstring, and checks for the error message.
* gh-109435: Add Doc/library/cmdline.rst (#109436)Victor Stinner2023-09-199-0/+70
| | | Document modules providing a command-line interface (CLI).
* no-issue: Fix typo TestContentTyopeHeader to TestContentTypeHeader (gh-109069)Jenner2023-09-191-1/+1
|
* gh-109125: Run mypy on `Tools/wasm` (#109126)Nikita Sobolev2023-09-195-40/+71
|
* gh-109469: Silence compiler warnings on string comparisons in _testcapi ↵Serhiy Storchaka2023-09-191-1/+2
| | | | (GH-109533)
* gh-109546: Add more tests for formatting floats and fractions (GH-109548)Serhiy Storchaka2023-09-192-2/+35
|
* Fix error handling in _PySys_UpdateConfig() (GH-109524)Serhiy Storchaka2023-09-181-2/+9
|
* gh-102757: fix function signature mismatch for `functools.reduce` between ↵Xuehai Pan2023-09-184-8/+12
| | | | code and documentation (#102759)
* gh-109496: Detect Py_DECREF() after dealloc in debug mode (#109539)Victor Stinner2023-09-184-16/+56
| | | | | | | | | On a Python built in debug mode, Py_DECREF() now calls _Py_NegativeRefcount() if the object is a dangling pointer to deallocated memory: memory filled with 0xDD "dead byte" by the debug hook on memory allocators. The fix is to check the reference count *before* checking for _Py_IsImmortal(). Add test_decref_freed_object() to test_capi.test_misc.
* gh-109508: Fix libregrtest formatting of getcwd() (#109537)Victor Stinner2023-09-181-1/+10
|
* gh-109371: Fix monitoring with instruction events set (gh-109385)Tian Gao2023-09-184-2/+33
|
* gh-108843: fix ast.unparse for f-string with many quotes (#108981)Shantanu2023-09-183-1/+35
|
* gh-108303: Fix and move `badsyntax_pep3120.py` (#109513)Nikita Sobolev2023-09-183-5/+3
| | | Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* gh-109408: Azure Pipelines: test 3.12 branch (#109453)Hugo van Kemenade2023-09-182-2/+2
|
* Docs: getopt is deprecated in Python 3.13 (#109438)Hugo van Kemenade2023-09-181-1/+2
|
* Fix a typo in c-analyzer (#109213)DongWoo Son2023-09-181-1/+1
| | | | Co-authored-by: sunmy2019 <59365878+sunmy2019@users.noreply.github.com> Co-authored-by: Dale Collison <92315623+dcollison@users.noreply.github.com>
* Fix extraneous backslashes in hashlib docs (#109468)Anthony Sottile2023-09-181-12/+12
|
* gh-109413: Improve mypy config for libregrtest (#109518)Alex Waygood2023-09-181-23/+9
| | | Improve the mypy config file for libregrtest
* gh-109408: Remove Ubuntu unit tests from Azure Pipelines (#109452)Hugo van Kemenade2023-09-173-54/+8
|
* gh-108511: Add C API functions which do not silently ignore errors (GH-109025)Serhiy Storchaka2023-09-1728-111/+330
| | | | | | | | | Add the following functions: * PyObject_HasAttrWithError() * PyObject_HasAttrStringWithError() * PyMapping_HasKeyWithError() * PyMapping_HasKeyStringWithError()
* gh-108303: Move all certificates to `Lib/test/certdata/` (#109489)Nikita Sobolev2023-09-1641-28/+31
|
* gh-109451: Fix wrong format specifier in logging documentation (GH-109465)AlberLC2023-09-161-1/+1
|
* gh-109414: Add some basic information about venvs in the introduction. ↵Vinay Sajip2023-09-161-0/+19
| | | | | (GH-109440) Co-authored-by: Victor Stinner <vstinner@python.org>
* gh-109474: Update two Unix packaging URLs (#109307)partev2023-09-161-2/+2
| | | | | update packaging URLs fix a broken URL for fedora RPM packaging guide and fix a URL redirect for Slackware packaging guide.
* GH-83417: Allow `venv` to add a `.gitignore` file to environments via a new ↵Brett Cannon2023-09-157-95/+233
| | | | | | | | `scm_ignore_file` parameter (GH-108125) This feature is off by default via code but on by default via the CLI. The `.gitignore` file contains `*` which causes the entire directory to be ignored. Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com> Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
* gh-106213: Make Emscripten trampolines work with JSPI (GH-106219)Hood Chatham2023-09-1510-30/+183
| | | | | | | | | | | | | | | | | | | | | | | | There is a WIP proposal to enable webassembly stack switching which have been implemented in v8: https://github.com/WebAssembly/js-promise-integration It is not possible to switch stacks that contain JS frames so the Emscripten JS trampolines that allow calling functions with the wrong number of arguments don't work in this case. However, the js-promise-integration proposal requires the [type reflection for Wasm/JS API](https://github.com/WebAssembly/js-types) proposal, which allows us to actually count the number of arguments a function expects. For better compatibility with stack switching, this PR checks if type reflection is available, and if so we use a switch block to decide the appropriate signature. If type reflection is unavailable, we should use the current EMJS trampoline. We cache the function argument counts since when I didn't cache them performance was negatively affected. Co-authored-by: T. Wouters <thomas@python.org> Co-authored-by: Brett Cannon <brett@python.org>
* gh-109096: Deprecate `http.server.CGIHTTPRequestHandler` (#109387)Gregory P. Smith2023-09-155-7/+51
| | | | | Deprecate `http.server.CGIHTTPRequestHandler`. Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
* GH-109373: Store metadata required for pystats comparison in the JSON ↵Michael Droettboom2023-09-151-32/+65
| | | | (GH-109374)
* gh-109350: Fix outdated captured output in unittest.mock documentation (#109353)Egil Martinsson2023-09-152-10/+15
|
* gh-109413: Fix some trivial mypy nitpicks in libregrtest (#109454)Alex Waygood2023-09-154-13/+11
|
* gh-91960: Disable Cirrus CI for now (#109457)Victor Stinner2023-09-151-0/+3
| | | | | Python is out of free credit and so all jobs are reported as failure. Rename .cirrus.yml to .cirrus-DISABLED.yml to disable the job.
* gh-109287: Desugar inst(X) to op(X); macro(X) = X (#109294)Guido van Rossum2023-09-155-163/+110
| | | This makes the internal representation in the code generator simpler: there's a list of ops, and a list of macros, and there's no special-casing needed for ops that aren't macros. (There's now special-casing for ops that are also macros, but that's simpler.)
* Add missing `PyDoc_STR` calls (#109393)Nikita Sobolev2023-09-155-8/+9
| | | | | | | | | In files: * Modules/_ctypes/cfield.c * Modules/_struct.c * Objects/dictobject.c * Objects/typevarobject.c * Objects/unionobject.c
* Fix date.__repr__() docstring (#109422)Christopher Yeh2023-09-151-7/+3
|
* Docs: Superseded modules: list only module names (#109439)Hugo van Kemenade2023-09-151-0/+1
|
* gh-109395: Remove skipped macOS builds from Azure Pipelines (#109400)Nikita Sobolev2023-09-153-65/+0
|
* gh-108303: Move `test_future` into its own test_future_stmt subdir (#109368)Nikita Sobolev2023-09-1518-19/+37
|
* gh-109395: Remove skipped coverage job from Azure Pipelines (#109412)Hugo van Kemenade2023-09-153-101/+9
|
* gh-109425: regrtest decodes worker stdout with backslashreplace (#109428)Victor Stinner2023-09-143-16/+37
| | | | | libregrtest now decodes stdout of test worker processes with the "backslashreplace" error handler to log corrupted stdout, instead of failing with an error and not logging the stdout.
* gh-109375: Fix bug where pdb registers an alias without an associated ↵buermarc2023-09-144-2/+13
| | | | command (#109376)
* gh-109396: Fix test_socket.test_hmac_sha1() in FIPS mode (#109423)Victor Stinner2023-09-142-3/+10
| | | | Use a longer key: FIPS mode requires at least of at least 112 bits. The previous key was only 32 bits.
* gh-109418: Fix hypothesis strategy for b2a_roundtrip test (#109419)Nikita Sobolev2023-09-141-1/+1
|
* gh-109413: libregrtest: Add and improve type annotations (#109405)Alex Waygood2023-09-1413-33/+83
|
* gh-101100: Fix sphinx warnings in `turtle.rst` (#109394)Nikita Sobolev2023-09-142-5/+4
|
* gh-109219: propagate free vars through type param scopes (#109377)Carl Meyer2023-09-143-3/+17
| | | Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
* gh-105658: fix excess trace events for except block ending with a ↵Irit Katriel2023-09-144-20/+41
| | | | conditional block (#109384)
* dump readable opcode names in flowgraph debug utility (#109392)Carl Meyer2023-09-141-3/+2
| | | Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
* gh-109402: Fix regrtest findtests() (#109403)Victor Stinner2023-09-141-4/+9
| | | | Check for the full module name in SPLITTESTDIRS, not the relative module name.
* gh-107298: Document PyMODINIT_FUNC macro (#109236)Victor Stinner2023-09-143-3/+27
| | | | | | | Document PyMODINIT_FUNC macro. Remove links to PyAPI_FUNC() and PyAPI_DATA() macros since they are not documented. These macros should only be used to define the Python C API. They should not be used outside Python code base.
* gh-107782: Use _testcapi to test non-representable signatures (GH-109325)Serhiy Storchaka2023-09-143-2/+82
| | | | | | | | | Builtin functions and methods that have non-representable signatures today will have representable signatures yesterday, and they will become unusable for testing this feature. So we need to add special functions and methods to the _testcapi module that always have non-representable signatures.