René's URL Explorer Experiment


Title: Failure when running `test_inspect` locally · Issue #136549 · python/cpython · GitHub

Open Graph Title: Failure when running `test_inspect` locally · Issue #136549 · python/cpython

X Title: Failure when running `test_inspect` locally · Issue #136549 · python/cpython

Description: The Python programming language. Contribute to python/cpython development by creating an account on GitHub.

Open Graph Description: The Python programming language. Contribute to python/cpython development by creating an account on GitHub.

X Description: The Python programming language. Contribute to python/cpython development by creating an account on GitHub.

Opengraph URL: https://github.com/python/cpython

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Failure when running `test_inspect` locally","articleBody":"# Bug report\n\n### Bug description:\n\nWhen running `test_inspect` locally (either via `unittest` or via executing `Lib/test/test_inspect/test_inspect.py`), I see this failure:\n\n```\nERROR: test_threading_module_has_signatures (__main__.TestSignatureDefinitions.test_threading_module_has_signatures) [supported] (builtin='excepthook')\n----------------------------------------------------------------------\nTraceback (most recent call last):\n  File \"/home/peter/develop/cpython/Lib/test/test_inspect/test_inspect.py\", line 5717, in _test_module_has_signatures\n    self.assertIsNotNone(inspect.signature(obj))\n                         ~~~~~~~~~~~~~~~~~^^^^^\n  File \"/home/peter/develop/cpython/Lib/inspect.py\", line 3312, in signature\n    return Signature.from_callable(obj, follow_wrapped=follow_wrapped,\n           ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n                                   globals=globals, locals=locals, eval_str=eval_str,\n                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n                                   annotation_format=annotation_format)\n                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n  File \"/home/peter/develop/cpython/Lib/inspect.py\", line 3027, in from_callable\n    return _signature_from_callable(obj, sigcls=cls,\n                                    follow_wrapper_chains=follow_wrapped,\n                                    globals=globals, locals=locals, eval_str=eval_str,\n                                    annotation_format=annotation_format)\n  File \"/home/peter/develop/cpython/Lib/inspect.py\", line 2508, in _signature_from_callable\n    return _signature_from_builtin(sigcls, obj,\n                                   skip_bound_arg=skip_bound_arg)\n  File \"/home/peter/develop/cpython/Lib/inspect.py\", line 2294, in _signature_from_builtin\n    return _signature_fromstr(cls, func, s, skip_bound_arg)\n  File \"/home/peter/develop/cpython/Lib/inspect.py\", line 2150, in _signature_fromstr\n    raise ValueError(\"{!r} builtin has invalid signature\".format(obj))\nValueError: \u003cbuilt-in function _excepthook> builtin has invalid signature\n```\n\nI'm able to reproduce this back to 3.13, so it's definitely not a recent failure.\n\nInterestingly, this failure *does not* show up when running through regrtest (`python -m test test_inspect`), both in CI or locally. I'm not sure if this is a misconfiguration that regrtest fixes, or an actual bug that's being hidden.\n\n### CPython versions tested on:\n\nCPython main branch\n\n### Operating systems tested on:\n\nLinux\n\n\u003c!-- gh-linked-prs -->\n### Linked PRs\n* gh-136559\n* gh-136589\n* gh-136590\n\u003c!-- /gh-linked-prs -->\n","author":{"url":"https://github.com/ZeroIntensity","@type":"Person","name":"ZeroIntensity"},"datePublished":"2025-07-11T15:46:59Z","url":"https://github.com/python/cpython/issues/136549"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/:user_id/:repository/issues/:id(.:format)
route-controllerissues
route-actionshow
fetch-noncev2:a387422f-c145-0b28-87a5-746fe42ce328
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idBA32:3DFA13:3438A:4705E:6B0017A9
html-safe-nonce664654749403280ee0d002c5b47703c7ba298ef8326de3c9ae0de03ebdf2e935
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQTMyOjNERkExMzozNDM4QTo0NzA1RTo2QjAwMTdBOSIsInZpc2l0b3JfaWQiOiI3MTg2MTU5ODQyMDIzNzA4NTg1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmacde7318efe78182acc674fa44852c5e97d7dfab63938f98e70cec335e6310299b
hovercard-subject-tagrepository:81598961
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///issues/show
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/python/cpython/issues/136549
twitter:imagehttps://opengraph.githubassets.com/7ad4b91f85ba88fd19345e5be36d04b258215ebdb6e9cc5d44c84e6feaf6d5ea/python/cpython
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/7ad4b91f85ba88fd19345e5be36d04b258215ebdb6e9cc5d44c84e6feaf6d5ea/python/cpython
og:image:altThe Python programming language. Contribute to python/cpython development by creating an account on GitHub.
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Nonea2dd2291b1b13cc9c06f27ec92fa3dbaf34116fc24c9347b8539db61884c59f4
turbo-cache-controlno-cache
go-importgithub.com/python/cpython git https://github.com/python/cpython.git
octolytics-dimension-user_id1525981
octolytics-dimension-user_loginpython
octolytics-dimension-repository_id81598961
octolytics-dimension-repository_nwopython/cpython
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id81598961
octolytics-dimension-repository_network_root_nwopython/cpython
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release70121d4e855ee0bb7b75cf15d061d91f8863c0f8
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/python/cpython/issues/136549#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fissues%2F136549
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fissues%2F136549
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fissues%2Fshow&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/issues/136549
Reloadhttps://github.com/python/cpython/issues/136549
Reloadhttps://github.com/python/cpython/issues/136549
https://github.com/python/cpython
New issuehttps://github.com/login?return_to=https://github.com/python/cpython/issues/136549
New issuehttps://github.com/login?return_to=https://github.com/python/cpython/issues/136549
Failure when running test_inspect locallyhttps://github.com/python/cpython/issues/136549#top
3.13only security fixeshttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.13%22
3.14bugs and security fixeshttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.14%22
3.15bugs and security fixeshttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.15%22
testsTests in the Lib/test dirhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22tests%22
type-bugAn unexpected behavior, bug, or errorhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-bug%22
https://github.com/ZeroIntensity
ZeroIntensityhttps://github.com/ZeroIntensity
on Jul 11, 2025https://github.com/python/cpython/issues/136549#issue-3223383640
gh-136549: Fix signature of threading.excepthook() #136559https://github.com/python/cpython/pull/136559
[3.14] gh-136549: Fix signature of threading.excepthook() (GH-136559) #136589https://github.com/python/cpython/pull/136589
[3.13] gh-136549: Fix signature of threading.excepthook() (GH-136559) #136590https://github.com/python/cpython/pull/136590
ZeroIntensityhttps://github.com/ZeroIntensity
type-bugAn unexpected behavior, bug, or errorhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-bug%22
testsTests in the Lib/test dirhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22tests%22
3.13only security fixeshttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.13%22
3.14bugs and security fixeshttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.14%22
3.15bugs and security fixeshttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.15%22
on Jul 11, 2025https://github.com/python/cpython/issues/136549#event-18589158664
https://github.com/ZeroIntensity
ZeroIntensityhttps://github.com/ZeroIntensity
on Jul 11, 2025https://github.com/python/cpython/issues/136549#issuecomment-3063356632
#117816https://github.com/python/cpython/pull/117816
@serhiy-storchakahttps://github.com/serhiy-storchaka
serhiy-storchakahttps://github.com/serhiy-storchaka
on Jul 11, 2025https://github.com/python/cpython/issues/136549#event-18593363675
pythongh-136549: Fix signature of threading.excepthook()https://github.com/serhiy-storchaka/cpython/commit/48d3f68d82b50d054b6394e182cf9522ea42842a
pythongh-136549https://github.com/python/cpython/issues/136549
48d3f68https://github.com/serhiy-storchaka/cpython/commit/48d3f68d82b50d054b6394e182cf9522ea42842a
gh-136549: Fix signature of threading.excepthook() (GH-136559)https://github.com/python/cpython/commit/be2c3d284ecce67474a260b8c37e2f1e0628a9cf
gh-136549https://github.com/python/cpython/issues/136549
GH-136559https://github.com/python/cpython/pull/136559
be2c3d2https://github.com/python/cpython/commit/be2c3d284ecce67474a260b8c37e2f1e0628a9cf
miss-islingtonhttps://github.com/miss-islington
on Jul 12, 2025https://github.com/python/cpython/issues/136549#event-18600458761
pythongh-136549: Fix signature of threading.excepthook() (pythonGH-13…https://github.com/miss-islington/cpython/commit/f46ed2a07d380bb15a0b6ed4a49b72c16e5a86d2
pythongh-136549https://github.com/python/cpython/issues/136549
pythonGH-13…https://github.com/python/cpython/pull/136559
f46ed2ahttps://github.com/miss-islington/cpython/commit/f46ed2a07d380bb15a0b6ed4a49b72c16e5a86d2
pythongh-136549: Fix signature of threading.excepthook() (pythonGH-13…https://github.com/miss-islington/cpython/commit/3bfa5034be2988b40c0a03533232e192dcf8cbd4
pythongh-136549https://github.com/python/cpython/issues/136549
pythonGH-13…https://github.com/python/cpython/pull/136559
3bfa503https://github.com/miss-islington/cpython/commit/3bfa5034be2988b40c0a03533232e192dcf8cbd4
serhiy-storchakahttps://github.com/serhiy-storchaka
completedhttps://github.com/python/cpython/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Jul 12, 2025https://github.com/python/cpython/issues/136549#event-18600464092
serhiy-storchakahttps://github.com/serhiy-storchaka
on Jul 12, 2025https://github.com/python/cpython/issues/136549#event-18600569999
[3.13] gh-136549: Fix signature of threading.excepthook() (GH-136559) (…https://github.com/python/cpython/commit/d733a1ed7738c1498703f4c5d2f04f39c156659e
gh-136549https://github.com/python/cpython/issues/136549
GH-136559https://github.com/python/cpython/pull/136559
…https://github.com/python/cpython/pull/136590
d733a1ehttps://github.com/python/cpython/commit/d733a1ed7738c1498703f4c5d2f04f39c156659e
[3.14] gh-136549: Fix signature of threading.excepthook() (GH-136559) (…https://github.com/python/cpython/commit/64df22c19029b1d99eb7993f16bfe9f484a8405e
gh-136549https://github.com/python/cpython/issues/136549
GH-136559https://github.com/python/cpython/pull/136559
…https://github.com/python/cpython/pull/136589
64df22chttps://github.com/python/cpython/commit/64df22c19029b1d99eb7993f16bfe9f484a8405e
picnixzhttps://github.com/picnixz
on Jul 13, 2025https://github.com/python/cpython/issues/136549#event-18605020025
pythongh-136549: Fix signature of threading.excepthook() (pythonGH-13…https://github.com/picnixz/cpython/commit/5fc0a6d6fe8d2af9390df476899d279a7946e922
pythongh-136549https://github.com/python/cpython/issues/136549
pythonGH-13…https://github.com/python/cpython/pull/136559
5fc0a6dhttps://github.com/picnixz/cpython/commit/5fc0a6d6fe8d2af9390df476899d279a7946e922
taegyunkimhttps://github.com/taegyunkim
on Aug 4, 2025https://github.com/python/cpython/issues/136549#event-18976851301
pythongh-136549: Fix signature of threading.excepthook() (pythonGH-13…https://github.com/taegyunkim/cpython/commit/00b87fc4b0244dfd86262186610b75f24c7565bf
pythongh-136549https://github.com/python/cpython/issues/136549
pythonGH-13…https://github.com/python/cpython/pull/136559
00b87fchttps://github.com/taegyunkim/cpython/commit/00b87fc4b0244dfd86262186610b75f24c7565bf
Agent-Hellboyhttps://github.com/Agent-Hellboy
on Aug 19, 2025https://github.com/python/cpython/issues/136549#event-19221811430
pythongh-136549: Fix signature of threading.excepthook() (pythonGH-13…https://github.com/Agent-Hellboy/cpython/commit/fdd2d62988ea918aa02dbe8106e347ea0eb73eaa
pythongh-136549https://github.com/python/cpython/issues/136549
pythonGH-13…https://github.com/python/cpython/pull/136559
fdd2d62https://github.com/Agent-Hellboy/cpython/commit/fdd2d62988ea918aa02dbe8106e347ea0eb73eaa
kumaraditya303https://github.com/kumaraditya303
on Sep 9, 2025https://github.com/python/cpython/issues/136549#event-19588154842
[3.14] pythongh-136549: Fix signature of threading.excepthook() (pyth…https://github.com/miss-islington/cpython/commit/968eec167de8e4ec15ceac8c0e3c217024fb832b
pythongh-136549https://github.com/python/cpython/issues/136549
pyth…https://github.com/python/cpython/pull/136559
968eec1https://github.com/miss-islington/cpython/commit/968eec167de8e4ec15ceac8c0e3c217024fb832b
Sign up for freehttps://github.com/signup?return_to=https://github.com/python/cpython/issues/136549
Sign in to commenthttps://github.com/login?return_to=https://github.com/python/cpython/issues/136549
3.13only security fixeshttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.13%22
3.14bugs and security fixeshttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.14%22
3.15bugs and security fixeshttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.15%22
testsTests in the Lib/test dirhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22tests%22
type-bugAn unexpected behavior, bug, or errorhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-bug%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.