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

gh-105013: Fix inspect.getsource with parenthesized multiline lambdas#105021

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
pablogsal merged 4 commits intopython:mainfrompablogsal:gh-105013
May 27, 2023

Conversation

pablogsal
Copy link
Member

@pablogsalpablogsal commentedMay 27, 2023
edited by bedevere-bot
Loading

…iline lambdasSigned-off-by: Pablo Galindo <pablogsal@gmail.com>
@pablogsalpablogsal merged commit3a5be87 intopython:mainMay 27, 2023
@pablogsalpablogsal deleted the gh-105013 branchMay 27, 2023 23:20
@miss-islington
Copy link
Contributor

Thanks@pablogsal for the PR 🌮🎉.. I'm working now to backport this PR to: 3.12.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull requestMay 27, 2023
…ambdas (pythonGH-105021)(cherry picked from commit3a5be87)Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
@bedevere-bot
Copy link

GH-105032 is a backport of this pull request to the3.12 branch.

@bedevere-botbedevere-bot removed the needs backport to 3.12only security fixes labelMay 27, 2023
@bedevere-bot
Copy link

⚠️⚠️⚠️ Buildbot failure⚠️⚠️⚠️

Hi! The buildbots390x Fedora LTO 3.x has failed when building commit3a5be87.

What do you need to do:

  1. Don't panic.
  2. Checkthe buildbot page in the devguide if you don't know what the buildbots are or how they work.
  3. Go to the page of the buildbot that failed (https://buildbot.python.org/all/#builders/55/builds/3442) and take a look at the build logs.
  4. Check if the failure is related to this commit (3a5be87) or if it is a false positive.
  5. If the failure is related to this commit, please, reflect that on the issue and make a new Pull Request with a fix.

You can take a look at the buildbot page here:

https://buildbot.python.org/all/#builders/55/builds/3442

Failed tests:

  • test_tools

Failed subtests:

  • test_freeze_simple_script - test.test_tools.test_freeze.TestFreeze.test_freeze_simple_script
  • test_subprocess_consistent_callbacks - test.test_asyncio.test_subprocess.SubprocessThreadedWatcherTests.test_subprocess_consistent_callbacks

Summary of the results of the build (if available):

== Tests result: FAILURE then FAILURE ==

430 tests OK.

10 slowest tests:

  • test_tools: 5 min 28 sec
  • test_gdb: 2 min 21 sec
  • test_concurrent_futures: 2 min 13 sec
  • test_multiprocessing_spawn: 1 min 29 sec
  • test_signal: 1 min 16 sec
  • test_multiprocessing_forkserver: 1 min 11 sec
  • test_multiprocessing_fork: 1 min 7 sec
  • test_socket: 43.3 sec
  • test_io: 33.8 sec
  • test_imaplib: 31.8 sec

1 test failed:
test_tools

16 tests skipped:
test.test_asyncio.test_windows_events
test.test_asyncio.test_windows_utils test_devpoll test_ioctl
test_kqueue test_launcher test_perf_profiler test_readline
test_startfile test_tkinter test_ttk test_winconsoleio test_winreg
test_winsound test_wmi test_zipfile64

2 re-run tests:
test.test_asyncio.test_subprocess test_tools

Total duration: 13 min 5 sec

Click to see traceback logs
Traceback (most recent call last):  File"<string>", line1, in<module>  File"/tmp/tmpp5ax66v2/cpython/Lib/sysconfig.py", line740, inget_config_varreturn get_config_vars().get(name)^^^^^^^^^^^^^^^^^  File"/tmp/tmpp5ax66v2/cpython/Lib/sysconfig.py", line723, inget_config_vars    _init_config_vars()  File"/tmp/tmpp5ax66v2/cpython/Lib/sysconfig.py", line670, in_init_config_vars    _init_posix(_CONFIG_VARS)  File"/tmp/tmpp5ax66v2/cpython/Lib/sysconfig.py", line536, in_init_posix    _temp=__import__(name,globals(),locals(), ['build_time_vars'],0)^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ModuleNotFoundError:No module named '_sysconfigdata__linux_s390x-linux-gnu'Traceback (most recent call last):  File"/home/dje/cpython-buildarea/3.x.edelsohn-fedora-z.lto/build/Lib/test/test_asyncio/test_subprocess.py", line788, intest_subprocess_consistent_callbacksself.loop.run_until_complete(main())  File"/home/dje/cpython-buildarea/3.x.edelsohn-fedora-z.lto/build/Lib/asyncio/base_events.py", line664, inrun_until_completereturn future.result()^^^^^^^^^^^^^^^  File"/home/dje/cpython-buildarea/3.x.edelsohn-fedora-z.lto/build/Lib/test/test_asyncio/test_subprocess.py", line780, inmainself.assertEqual(events, [AssertionError:Lists differ: [('pi[69 chars]), 'process_exited', 'pipe_connection_lost', '[17 chars]ost'] != [('pi[69 chars]), 'pipe_connection_lost', 'pipe_connection_lo[17 chars]ted']Traceback (most recent call last):  File"<string>", line1, in<module>  File"/tmp/test_python_m88f8cj4/tmpuk19wcv2/cpython/Lib/sysconfig.py", line740, inget_config_varreturn get_config_vars().get(name)^^^^^^^^^^^^^^^^^  File"/tmp/test_python_m88f8cj4/tmpuk19wcv2/cpython/Lib/sysconfig.py", line723, inget_config_vars    _init_config_vars()  File"/tmp/test_python_m88f8cj4/tmpuk19wcv2/cpython/Lib/sysconfig.py", line670, in_init_config_vars    _init_posix(_CONFIG_VARS)  File"/tmp/test_python_m88f8cj4/tmpuk19wcv2/cpython/Lib/sysconfig.py", line536, in_init_posix    _temp=__import__(name,globals(),locals(), ['build_time_vars'],0)^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ModuleNotFoundError:No module named '_sysconfigdata__linux_s390x-linux-gnu'Traceback (most recent call last):  File"/home/dje/cpython-buildarea/3.x.edelsohn-fedora-z.lto/build/Lib/test/test_tools/test_freeze.py", line27, intest_freeze_simple_script    outdir, scriptfile, python= helper.prepare(script, outdir)^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^  File"/home/dje/cpython-buildarea/3.x.edelsohn-fedora-z.lto/build/Tools/freeze/test/freeze.py", line180, inprepare    _run_quiet([MAKE,'-C', builddir, parallel])  File"/home/dje/cpython-buildarea/3.x.edelsohn-fedora-z.lto/build/Tools/freeze/test/freeze.py", line25, in_run_quietreturn subprocess.run(^^^^^^^^^^^^^^^  File"/home/dje/cpython-buildarea/3.x.edelsohn-fedora-z.lto/build/Lib/subprocess.py", line571, inrunraise CalledProcessError(retcode, process.args,subprocess.CalledProcessError:Command '['/usr/bin/make', '-C', '/tmp/tmpp5ax66v2/python-build', '-j2']' returned non-zero exit status 2.Traceback (most recent call last):  File"/home/dje/cpython-buildarea/3.x.edelsohn-fedora-z.lto/build/Lib/test/test_tools/test_freeze.py", line27, intest_freeze_simple_script    outdir, scriptfile, python= helper.prepare(script, outdir)^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^  File"/home/dje/cpython-buildarea/3.x.edelsohn-fedora-z.lto/build/Tools/freeze/test/freeze.py", line180, inprepare    _run_quiet([MAKE,'-C', builddir, parallel])  File"/home/dje/cpython-buildarea/3.x.edelsohn-fedora-z.lto/build/Tools/freeze/test/freeze.py", line25, in_run_quietreturn subprocess.run(^^^^^^^^^^^^^^^  File"/home/dje/cpython-buildarea/3.x.edelsohn-fedora-z.lto/build/Lib/subprocess.py", line571, inrunraise CalledProcessError(retcode, process.args,subprocess.CalledProcessError:Command '['/usr/bin/make', '-C', '/tmp/test_python_m88f8cj4/tmpuk19wcv2/python-build', '-j2']' returned non-zero exit status 2.

pablogsal added a commit that referenced this pull requestMay 28, 2023
…lambdas (GH-105021) (#105032)gh-105013: Fix inspect.getsource with parenthesized multiline lambdas (GH-105021)(cherry picked from commit3a5be87)Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@arhadthedevarhadthedevarhadthedev left review comments

@sunmy2019sunmy2019sunmy2019 left review comments

@lysnikolaoulysnikolaouAwaiting requested review from lysnikolaou

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

5 participants
@pablogsal@miss-islington@bedevere-bot@arhadthedev@sunmy2019

[8]ページ先頭

©2009-2025 Movatter.jp