]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-35633: test_lockf() fails with "PermissionError: [Errno 13] Permission denied...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 14 Feb 2019 18:41:37 +0000 (10:41 -0800)
committerGitHub <noreply@github.com>
Thu, 14 Feb 2019 18:41:37 +0000 (10:41 -0800)
commit7e618f3154404613cd9774fb8ffb5b48e7233a9e
tree60515f930ae40a5507f084695e95dc97ead29764
parente20893596f4ecbca90be6caecbf8c22c9629376d
bpo-35633: test_lockf() fails with "PermissionError: [Errno 13] Permission denied" on AIX (GH-11424)

[bpo-35633](https://bugs.python.org/issue35633): Fix a test regression introduced with [bpo-35189](https://bugs.python.org/issue35189) (PEP 475: fnctl functions are not retried if interrupted (EINTR)).

Not only a blocking IO error needs to be ignored - permission errors also need to be ignored.

p.s. - iirc as a "test" only correction a NEWS item is not required. If this is not correct - just mention, and I'll add a NEWS blurb.

https://bugs.python.org/issue35633
(cherry picked from commit b94d4bed67c60834b1a5a0936b8c13934cf3b872)

Co-authored-by: Michael Felt <aixtools@users.noreply.github.com>
Lib/test/eintrdata/eintr_tester.py