]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-129205: Modernize test_eintr (#129316)
authorVictor Stinner <vstinner@python.org>
Mon, 27 Jan 2025 17:04:45 +0000 (18:04 +0100)
committerGitHub <noreply@github.com>
Mon, 27 Jan 2025 17:04:45 +0000 (18:04 +0100)
commit8a5a18a36ee118e11c0b45c3dfe8bd69e5db82f9
tree45ac072e11621f2af57391c7c5cbbc37a3100e02
parent75b49621578a45415bfeedd6cc68d50e821d8281
gh-129205: Modernize test_eintr (#129316)

* Use f-string.
* Fix grammar: replace 'datas' with 'data' (and replace 'data' with
  'item').
* Remove unused variables: 'pid' and 'old_mask'.
* Factorize test_read() and test_readinto() code.

Co-authored-by: Cody Maloney <cmaloney@users.noreply.github.com>
Lib/test/_test_eintr.py