Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

patchcheck.py raisesSystemError onmain #105820

Closed
Assignees
pablogsallysnikolaou
Labels
type-bugAn unexpected behavior, bug, or error
@AlexWaygood

Description

@AlexWaygood

Bug report

Following#105801, runningpython Tools/patchcheck/patchcheck.py now results inSystemError being raised.

To reproduce

  1. Make any change to a.py file, e.g.:
--- a/Lib/test/test_fstring.py+++ b/Lib/test/test_fstring.py@@ -19,6 +19,7 @@ a_global = 'global variable'+
  1. Runpython Tools/patchcheck/patchcheck.py:
C:\Users\alexw\coding\cpython>python Tools/patchcheck/patchcheck.pyRunning Release|x64 interpreter...Getting base branch for PR ... upstream/mainGetting the list of files that have been added/changed ... 1 fileFixing Python file whitespace ... Traceback (most recent call last):  File "C:\Users\alexw\coding\cpython\Tools\patchcheck\patchcheck.py", line 325, in <module>    main()  File "C:\Users\alexw\coding\cpython\Tools\patchcheck\patchcheck.py", line 293, in main    normalize_whitespace(python_files)  File "C:\Users\alexw\coding\cpython\Tools\patchcheck\patchcheck.py", line 35, in call_fxn    result = fxn(*args, **kwargs)             ^^^^^^^^^^^^^^^^^^^^  File "C:\Users\alexw\coding\cpython\Tools\patchcheck\patchcheck.py", line 188, in normalize_whitespace    and reindent.check(os.path.join(SRCDIR, path))        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^  File "C:\Users\alexw\coding\cpython\Tools\patchcheck\reindent.py", line 138, in check    if r.run():       ^^^^^^^  File "C:\Users\alexw\coding\cpython\Tools\patchcheck\reindent.py", line 203, in run    for _token in tokens:  File "C:\Users\alexw\coding\cpython\Lib\tokenize.py", line 537, in _generate_tokens_from_c_tokenizer    for info in it:SystemError: Negative size passed to PyUnicode_New

This failure was visible on the Azure Pipelines job on the PR FYI:https://dev.azure.com/Python/cpython/_build/results?buildId=130389&view=logs&j=256d7e09-002a-52d7-8661-29ee3960640e&t=3d7276d3-4e8d-5309-55ad-fb0b172d9925

Your environment

Python 3.13.0a0 (heads/main:c5111aec2b, Jun 15 2023, 10:53:37) [MSC v.1932 64 bit (AMD64)] on win32

Linked PRs

Metadata

Metadata

Labels

type-bugAn unexpected behavior, bug, or error

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions


    [8]ページ先頭

    ©2009-2025 Movatter.jp