| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
|
Most changes to Python require a NEWS entry. Add one using the blurb_it web app or the blurb command-line tool. If this change has little impact on Python users, wait for a maintainer to apply the skip news label instead. |
Sorry, something went wrong.
|
Most changes to Python require a NEWS entry. Add one using the blurb_it web app or the blurb command-line tool. If this change has little impact on Python users, wait for a maintainer to apply the skip news label instead. |
Sorry, something went wrong.
|
Ok, i am changed it. Can you add "skip news" label please? |
Sorry, something went wrong.
| self.assertEqual(self.ground.readbytes(p), b'abcdefg') | ||
| # check the return value | ||
| data = b'some bytes' | ||
| self.assertEqual(len(data), p.write_bytes(data)) |
There was a problem hiding this comment.
Can we do the same here and move the check to the line 68?
Sorry, something went wrong.
There was a problem hiding this comment.
Yes i will
Sorry, something went wrong.
There was a problem hiding this comment.
This will fix the CI.
Sorry, something went wrong.
There was a problem hiding this comment.
My push from another device isnt synced.
Sorry, something went wrong.
|
Why its failing? |
Sorry, something went wrong.
|
Some flakiness I think. |
Sorry, something went wrong.
|
How? |
Sorry, something went wrong.
…methods in tests (pythonGH-143870) (cherry picked from commit cb6a662) Co-authored-by: b9788213 <b9788213@gmail.com> Co-authored-by: sobolevn <mail@sobolevn.me>
|
Sorry, @b9788213 and @sobolevn, I could not cleanly backport this to 3.13 due to a conflict. cherry_picker cb6a662bb0f7a9da9d4ba9dda820053f8d54a9f8 3.13 |
Sorry, something went wrong.
|
GH-144029 is a backport of this pull request to the 3.14 branch. |
Sorry, something went wrong.
|
@b9788213 can you please handle the 3.13 backport manually? |
Sorry, something went wrong.
|
Yes, but i dont how to do. |
Sorry, something went wrong.
|
See this command here: #143870 (comment) |
Sorry, something went wrong.
|
Ok, i think i have made it succesfully. |
Sorry, something went wrong.
|
GH-144078 is a backport of this pull request to the 3.13 branch. |
Sorry, something went wrong.
…methods in tests (python#143870) Co-authored-by: sobolevn <mail@sobolevn.me>
| Back | FazBrowse Home | New Git URL |
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 effects (file content), which means a regression (like accidentally removing the return statement) would go unnoticed.
Linked Issue
Fixes #143866