summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* 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.
* Add missing PyDoc_STR to GenericAlias.__parameters__ (#108811)James Hilton-Balfe2023-09-141-1/+1
|
* Fix invocation of wasm_build.py for node (GH-109383)Sam Gross2023-09-131-1/+1
|
* GH-104584: Don't call executors from JUMP_BACKWARD (GH-109347)Brandt Bucher2023-09-134-40/+23
|
* GH-105848: Replace KW_NAMES + CALL with LOAD_CONST + CALL_KW (GH-109300)Brandt Bucher2023-09-1322-508/+719
|
* gh-109341: Fix crash on compiling invalid AST including TypeAlias (#109349)Jelle Zijlstra2023-09-133-0/+26
|
* gh-109351: Fix crash when compiling AST with invalid NamedExpr (#109352)Jelle Zijlstra2023-09-133-0/+34
|
* gh-109156: Add tests for de-instrumenting instructions with instrumented ↵Tian Gao2023-09-132-0/+18
| | | | lines (GH-109157)
* Fix variable name in dis documentation example (GH-109343)Oleksandr Kravets2023-09-131-1/+1
| | | BINARY_SUBSCR example erroneously uses two different names `key` and `index` to refer to the same variable. STORE_SUBSCR and DELETE_SUBSCR use only `key` in the same context. Changing `index` to `key` for consistency.
* gh-105189: fix importlib.resources.abc deprecation docs (#105232)Thomas Grainger2023-09-132-12/+154
| | | | Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com> Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* gh-104736: Fix test_gdb tests on ppc64le with clang (#109360)Victor Stinner2023-09-132-0/+12
| | | | | | Fix test_gdb on Python built with LLVM clang 16 on Linux ppc64le (ex: Fedora 38). Search patterns in gdb "bt" command output to detect when gdb fails to retrieve the traceback. For example, skip a test if "Backtrace stopped: frame did not save the PC" is found.
* gh-108346: Fix failed benchmark in decimal (#108353)Charlie Zhao2023-09-131-53/+74
| | | Fix benchmark in decimal to work again after the int str conversion limits.
* gh-109357: Fix test_monitoring.test_gh108976() (#109358)Victor Stinner2023-09-131-0/+1
| | | | | | The test now calls free_tool_id() so it can be run multiple times in the same process. For example, the following command no longer fails: python -m test test_monitoring -R 3:3
* gh-109276: libregrtest: fix work dir on WASI (#109356)Victor Stinner2023-09-132-11/+21
| | | | | | | | On WASI platform, get_temp_dir() should behave differently since the parent process is a WASI process and uses a different get_temp_dir() path. Fix also WorkerThread._runtest(): don't read JSON file if the worker process exit code is non-zero.
* gh-109276: libregrtest: WASM use stdout for JSON (#109355)Victor Stinner2023-09-134-33/+40
| | | | | | | | | | On Emscripten and WASI, or if --python command line is used, libregrtest now writes JSON into stdout, instead of using a name file. * Add JsonFileType.STDOUT. * Remove JsonFileType.FILENAME. * test.pythoninfo logs environment variables related to cross-compilation and running Python on Emscripten/WASI.
* gh-109276: libregrtest: WASM use filename for JSON (#109340)Victor Stinner2023-09-126-140/+273
| | | | | | | | | | | | | | | | On Emscripten and WASI platforms, or if --python command line option is used, libregrtest now uses a filename for the JSON file. Emscripten and WASI buildbot workers run the main test process with a different Python (Linux) which spawns Emscripten/WASI processes using the command specified in --python command line option. Passing a file descriptor from the parent process to the child process doesn't work in this case. * Add JsonFile and JsonFileType classes * Add RunTests.json_file_use_filename() method. * Add a test in test_regrtest on the --python command line option. * test_regrtest: add parallel=False parameter. * Split long RunWorkers._runtest() function into sub-functions.
* GH-109330: Dump and compare stats using opcode names, not numbers (GH-109335)Michael Droettboom2023-09-122-53/+35
|
* GH-104395: Add a link in 'Meta Information' to the docs download page (#104443)Adam Turner2023-09-121-0/+1
| | | Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
* Update workflow permissions in require-pr-label Action (#109342)Mariatta2023-09-121-2/+2
| | | Change the permission from `read` to `write`.
* gh-106581: Honor 'always_exits' in write_components() (#109338)Guido van Rossum2023-09-122-15/+1
| | | | | | | | | | I must have overlooked this when refactoring the code generator. The Tier 1 interpreter contained a few silly things like ``` goto resume_frame; STACK_SHRINK(1); ``` (and other variations, some where the unconditional `goto` was hidden in a macro).
* gh-109276: test.pythoninfo gets more test.support data (#109337)Victor Stinner2023-09-121-9/+68
| | | | | | | | Collect data from: * test.support * test.support.os_helper * test.support.socket_helper * test.support.threading_helper
* gh-109319: deprecate dis.HAVE_ARGUMENT (#109320)Irit Katriel2023-09-123-0/+8
|
* gh-60283: Check for redefined test names in CI (#109161)Hugo van Kemenade2023-09-125-1/+51
| | | | | Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
* gh-109184: update traceback module doc w.r.t notes (message is no longer ↵Irit Katriel2023-09-121-20/+22
| | | | always at the end) (#109201)
* gh-109266: Fix msvcrt.kbhit's documented return value (GH-109267)AN Long2023-09-123-5/+6
|
* gh-108303: Add `Lib/test/tokenizedata` to `TESTSUBDIRS` (#109314)Nikita Sobolev2023-09-121-0/+1
|
* gh-84867: Do not load tests from TestCase and FunctionTestCase (GH-100497)Nikita Sobolev2023-09-123-5/+48
|
* gh-109276: libregrtest: fix worker working dir (#109313)Victor Stinner2023-09-124-16/+24
| | | | | | | | | | | | | | Fix Emscripten and WASI: start the test worker process in the Python source code directory, where 'python.js' and 'python.wasm' can be found. Then worker_process() changes to a temporary directory created to run tests. * create_worker_process() uses os_helper.SAVEDCWD as cwd. * worker_process() uses get_temp_dir() as the parent directory for get_work_dir(). * Don't use plural but singual for "test" in "Run 1 test ..." message. * Remove unused imports. * Add WORK_DIR_PREFIX and WORKER_WORK_DIR_PREFIX constants.
* gh-109256: allocate opcode IDs for internal opcodes in their own range (#109269)Irit Katriel2023-09-1211-742/+757
|
* gh-109216: Fix possible memory leak in `BUILD_MAP` (#109257)Nikita Sobolev2023-09-124-9/+1
|
* gh-108303: Move tokenize-related data to Lib/test/tokenizedata (GH-109265)Nikita Sobolev2023-09-1218-25/+40
|
* gh-109276: libregrtest: limit number workers (#109288)Victor Stinner2023-09-124-5/+40
| | | | | | | | | Don't spawn more threads than the number of jobs: these worker threads would never get anything to do. * Add the number of tests in "Run ... tests in ..." message. * Add RunTests.get_jobs() method. * Add plural() function. * count() uses f-string.
* gh-109276: libregrtest calls random.seed() before each test (#109279)Victor Stinner2023-09-125-34/+94
| | | | | | | | | | | | | libregrtest now calls random.seed() before running each test file when -r/--randomize command line option is used. Moreover, it's also called in worker processes. It should help to make tests more deterministic. Previously, it was only called once in the main process before running all test files and it was not called in worker processes. * Convert some f-strings to regular strings in test_regrtest when f-string is not needed. * Remove unused all_methods variable from test_regrtest. * Add RunTests members are now mandatory.
* gh-109276: libregrtest only checks saved_test_environment() once (#109278)Victor Stinner2023-09-122-15/+12
| | | There is no need to check for environment changes twice.
* gh-109276: Complete test.pythoninfo (#109312)Victor Stinner2023-09-121-10/+11
| | | | | | | * Enable collect_sysconfig() on Windows. * Add sysconfig 'abs_builddir' and 'srcdir' * Add sysconfig.is_python_build() * Add tempfile.gettempdir() * Remove compatiblity with Python 2.7 (print_function).
* gh-109295: Skip test_generated_cases if different mount drives (#109308)Victor Stinner2023-09-121-1/+21
| | | | | | On Windows, skip the test if the current working directory and the Python source code directory have different mount drives. It happens if the temporary directory is on a different mount drive than the Python source code.
* Fix iter_index() to work with lists which do not support stop=None. (gh-109306)Raymond Hettinger2023-09-121-0/+11
|