René's URL Explorer Experiment


Title: gh-143866: Verify return value of pathlib write methods in tests by b9788213 · Pull Request #143870 · python/cpython · GitHub

Open Graph Title: gh-143866: Verify return value of pathlib write methods in tests by b9788213 · Pull Request #143870 · python/cpython

X Title: gh-143866: Verify return value of pathlib write methods in tests by b9788213 · Pull Request #143870 · python/cpython

Description: Description This PR adds assertions to ensure that pathlib.Path.write_text() and pathlib.Path.write_bytes() correctly return the number of bytes written. Currently, the tests only verify the side e...

Open Graph Description: Description This PR adds assertions to ensure that pathlib.Path.write_text() and pathlib.Path.write_bytes() correctly return the number of bytes written. Currently, the tests only verify the side e...

X Description: Description This PR adds assertions to ensure that pathlib.Path.write_text() and pathlib.Path.write_bytes() correctly return the number of bytes written. Currently, the tests only verify the side e...

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

X: @github

direct link

Domain: github.com

route-pattern/_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:1d449102-aa0c-6421-80fa-24f6b50b9dfe
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idD8A6:2AEA36:239623B:2EF2E4D:696B1463
html-safe-nonce6f764c8c699fc1a3ee92169f807eee5935e29bb2933d4441e03515e2fcbb34e7
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEOEE2OjJBRUEzNjoyMzk2MjNCOjJFRjJFNEQ6Njk2QjE0NjMiLCJ2aXNpdG9yX2lkIjoiMTQwODU4MjY4MTY2NTE0ODAwMyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac61bd1893500ac0f46e5bab990f284d8870d366431dff3da68623c84ca6f6b91b
hovercard-subject-tagpull_request:3177559307
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/python/cpython/143870/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/49de0deec8b71346c6cc92a926838ccc5cb9fff5e96e09cac3ddf4e6d0dcfbdd/python/cpython/pull/143870
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/49de0deec8b71346c6cc92a926838ccc5cb9fff5e96e09cac3ddf4e6d0dcfbdd/python/cpython/pull/143870
og:image:altDescription This PR adds assertions to ensure that pathlib.Path.write_text() and pathlib.Path.write_bytes() correctly return the number of bytes written. Currently, the tests only verify the side e...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameb9788213
hostnamegithub.com
expected-hostnamegithub.com
None5f99f7c1d70f01da5b93e5ca90303359738944d8ab470e396496262c66e60b8d
turbo-cache-controlno-preview
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
release82560a55c6b2054555076f46e683151ee28a19bc
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/143870#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F143870
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
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
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://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/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F143870
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/pull/143870
Reloadhttps://github.com/python/cpython/pull/143870
Reloadhttps://github.com/python/cpython/pull/143870
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/143870
Notifications https://github.com/login?return_to=%2Fpython%2Fcpython
Fork 33.9k https://github.com/login?return_to=%2Fpython%2Fcpython
Star 71.1k https://github.com/login?return_to=%2Fpython%2Fcpython
Code https://github.com/python/cpython
Issues 5k+ https://github.com/python/cpython/issues
Pull requests 2.1k https://github.com/python/cpython/pulls
Actions https://github.com/python/cpython/actions
Projects 31 https://github.com/python/cpython/projects
Security Uh oh! There was an error while loading. Please reload this page. https://github.com/python/cpython/security
Please reload this pagehttps://github.com/python/cpython/pull/143870
Insights https://github.com/python/cpython/pulse
Code https://github.com/python/cpython
Issues https://github.com/python/cpython/issues
Pull requests https://github.com/python/cpython/pulls
Actions https://github.com/python/cpython/actions
Projects https://github.com/python/cpython/projects
Security https://github.com/python/cpython/security
Insights https://github.com/python/cpython/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose
Jump to bottomhttps://github.com/python/cpython/pull/143870#issue-comment-box
b9788213https://github.com/b9788213
python:mainhttps://github.com/python/cpython/tree/main
b9788213:gh-143866-pathlib-testhttps://github.com/b9788213/cpython/tree/gh-143866-pathlib-test
gh-143866: Verify return value of pathlib write methods in tests https://github.com/python/cpython/pull/143870#top
b9788213https://github.com/b9788213
python:mainhttps://github.com/python/cpython/tree/main
b9788213:gh-143866-pathlib-testhttps://github.com/b9788213/cpython/tree/gh-143866-pathlib-test
Conversation 10 https://github.com/python/cpython/pull/143870
Commits 5 https://github.com/python/cpython/pull/143870/commits
Checks 41 https://github.com/python/cpython/pull/143870/checks
Files changed 1 https://github.com/python/cpython/pull/143870/files
https://github.co/hiddenchars
https://github.com/python/cpython/pull/{{ revealButtonHref }}
https://github.com/b9788213
b9788213https://github.com/b9788213
Jan 15, 2026https://github.com/python/cpython/pull/143870#issue-3817803929
Please reload this pagehttps://github.com/python/cpython/pull/143870
#143866https://github.com/python/cpython/issues/143866
Missing return value validation in pathlib's write_text and write_bytes tests #143866https://github.com/python/cpython/issues/143866
Please reload this pagehttps://github.com/python/cpython/pull/143870
https://github.com/b9788213
pythongh-143866https://github.com/python/cpython/issues/143866
: Verify return value of pathlib write methods in testshttps://github.com/python/cpython/pull/143870/commits/be71fed0f08ebf2f58b39e7d39be7ff9c0585961
be71fedhttps://github.com/python/cpython/pull/143870/commits/be71fed0f08ebf2f58b39e7d39be7ff9c0585961
https://github.com/b9788213
b9788213https://github.com/b9788213
barneygalehttps://github.com/barneygale
code ownerhttps://github.com/python/cpython/blob/3514ba2175764e4d746e6862e2fcfc06b5fcd6c2/.github/CODEOWNERS#L527
January 15, 2026 14:29https://github.com/python/cpython/pull/143870#event-22071370953
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
tests https://github.com/python/cpython/issues?q=state%3Aopen%20label%3Atests
Jan 15, 2026https://github.com/python/cpython/pull/143870#event-22071372428
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
Jan 15, 2026https://github.com/python/cpython/pull/143870#issuecomment-3755157208
require a NEWS entryhttps://devguide.python.org/core-developers/committing/#updating-news-and-what-s-new-in-python
blurb_ithttps://blurb-it.herokuapp.com
blurbhttps://pypi.org/project/blurb/
Please reload this pagehttps://github.com/python/cpython/pull/143870
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
Jan 15, 2026 https://github.com/python/cpython/pull/143870#ref-issue-3817285585
Missing return value validation in pathlib's write_text and write_bytes tests #143866 https://github.com/python/cpython/issues/143866
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
awaiting review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20review%22
Jan 15, 2026https://github.com/python/cpython/pull/143870#event-22071374625
https://github.com/sobolevn
sobolevnhttps://github.com/sobolevn
Jan 15, 2026 https://github.com/python/cpython/pull/143870#pullrequestreview-3666654236
View reviewed changes https://github.com/python/cpython/pull/143870/files/be71fed0f08ebf2f58b39e7d39be7ff9c0585961
Lib/test/test_pathlib/test_write.pyhttps://github.com/python/cpython/pull/143870/files/be71fed0f08ebf2f58b39e7d39be7ff9c0585961#diff-2f4ea2a0952970f724d40220f9e556289bede4a1c22ea22671f69be88549d8c0
Please reload this pagehttps://github.com/python/cpython/pull/143870
https://github.com/b9788213
Update existing instead of creating a new one.https://github.com/python/cpython/pull/143870/commits/2c25d401727b2f95540644999284ed65e9decd21
2c25d40https://github.com/python/cpython/pull/143870/commits/2c25d401727b2f95540644999284ed65e9decd21
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
Jan 15, 2026https://github.com/python/cpython/pull/143870#issuecomment-3756550215
require a NEWS entryhttps://devguide.python.org/core-developers/committing/#updating-news-and-what-s-new-in-python
blurb_ithttps://blurb-it.herokuapp.com
blurbhttps://pypi.org/project/blurb/
Please reload this pagehttps://github.com/python/cpython/pull/143870
https://github.com/b9788213
b9788213https://github.com/b9788213
Jan 15, 2026https://github.com/python/cpython/pull/143870#issuecomment-3756571004
Please reload this pagehttps://github.com/python/cpython/pull/143870
https://github.com/sobolevn
sobolevnhttps://github.com/sobolevn
skip news https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22skip%20news%22
Jan 15, 2026https://github.com/python/cpython/pull/143870#event-22080427004
https://github.com/sobolevn
sobolevnhttps://github.com/sobolevn
Jan 15, 2026 https://github.com/python/cpython/pull/143870#pullrequestreview-3667714313
View reviewed changes https://github.com/python/cpython/pull/143870/files/2c25d401727b2f95540644999284ed65e9decd21
Lib/test/test_pathlib/test_write.pyhttps://github.com/python/cpython/pull/143870/files/2c25d401727b2f95540644999284ed65e9decd21#diff-2f4ea2a0952970f724d40220f9e556289bede4a1c22ea22671f69be88549d8c0
Please reload this pagehttps://github.com/python/cpython/pull/143870
b9788213https://github.com/b9788213
January 16, 2026 10:16https://github.com/python/cpython/pull/143870#commits-pushed-8e9c767
https://github.com/b9788213
Merge branch 'main' intohttps://github.com/python/cpython/pull/143870/commits/8e9c7675247a074ecfff99b68e8b4711f3926aa6
pythongh-143866https://github.com/python/cpython/issues/143866
-pathlib-testhttps://github.com/python/cpython/pull/143870/commits/8e9c7675247a074ecfff99b68e8b4711f3926aa6
8e9c767https://github.com/python/cpython/pull/143870/commits/8e9c7675247a074ecfff99b68e8b4711f3926aa6
https://github.com/b9788213
.https://github.com/python/cpython/pull/143870/commits/8b1e0dbd70279f7c2af17760455b486b438017a7
8b1e0dbhttps://github.com/python/cpython/pull/143870/commits/8b1e0dbd70279f7c2af17760455b486b438017a7
https://github.com/sobolevn
sobolevnhttps://github.com/sobolevn
Jan 16, 2026 https://github.com/python/cpython/pull/143870#pullrequestreview-3669464585
View reviewed changes https://github.com/python/cpython/pull/143870/files/8b1e0dbd70279f7c2af17760455b486b438017a7
Lib/test/test_pathlib/test_write.pyhttps://github.com/python/cpython/pull/143870/files/8b1e0dbd70279f7c2af17760455b486b438017a7#diff-2f4ea2a0952970f724d40220f9e556289bede4a1c22ea22671f69be88549d8c0
sobolevnhttps://github.com/sobolevn
Jan 16, 2026https://github.com/python/cpython/pull/143870#discussion_r2697425394
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/143870
b9788213https://github.com/b9788213
Jan 16, 2026https://github.com/python/cpython/pull/143870#discussion_r2697463026
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/143870
sobolevnhttps://github.com/sobolevn
Jan 16, 2026https://github.com/python/cpython/pull/143870#discussion_r2697464431
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/143870
b9788213https://github.com/b9788213
Jan 16, 2026https://github.com/python/cpython/pull/143870#discussion_r2698418348
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/143870
https://github.com/b9788213
b9788213https://github.com/b9788213
Jan 16, 2026https://github.com/python/cpython/pull/143870#issuecomment-3758725117
Please reload this pagehttps://github.com/python/cpython/pull/143870
https://github.com/b9788213
.https://github.com/python/cpython/pull/143870/commits/7a8dd6f6d0f4a0bec17ca6c0722b9d75584b6e2f
7a8dd6fhttps://github.com/python/cpython/pull/143870/commits/7a8dd6f6d0f4a0bec17ca6c0722b9d75584b6e2f
https://github.com/b9788213
b9788213https://github.com/b9788213
force-pushedhttps://github.com/python/cpython/compare/b727c7ca8f4ca97e6264a24214abf94249a25fe9..7a8dd6f6d0f4a0bec17ca6c0722b9d75584b6e2f
b727c7chttps://github.com/python/cpython/commit/b727c7ca8f4ca97e6264a24214abf94249a25fe9
7a8dd6fhttps://github.com/python/cpython/commit/7a8dd6f6d0f4a0bec17ca6c0722b9d75584b6e2f
Compare https://github.com/python/cpython/compare/b727c7ca8f4ca97e6264a24214abf94249a25fe9..7a8dd6f6d0f4a0bec17ca6c0722b9d75584b6e2f
January 16, 2026 17:54https://github.com/python/cpython/pull/143870#event-22101824927
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F143870
https://github.com/sobolevn
sobolevn https://github.com/sobolevn
https://github.com/python/cpython/pull/143870/files/8b1e0dbd70279f7c2af17760455b486b438017a7
https://github.com/barneygale
barneygale https://github.com/barneygale
awaiting review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20review%22
skip news https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22skip%20news%22
tests https://github.com/python/cpython/issues?q=state%3Aopen%20label%3Atests
Missing return value validation in pathlib's write_text and write_bytes tests https://github.com/python/cpython/issues/143866
Please reload this pagehttps://github.com/python/cpython/pull/143870
https://github.com/b9788213
https://github.com/sobolevn
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.