gh-95672 skip fcntl when pipesize is smaller than pagesize (gh-102163)

This commit is contained in:
Hyunkyun Moon 2023-03-01 23:56:19 +09:00 committed by GitHub
parent c1748ed59d
commit 2f62a5da94
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 26 additions and 3 deletions

View file

@ -717,7 +717,8 @@ class ProcessTestCase(BaseTestCase):
os.close(test_pipe_r)
os.close(test_pipe_w)
pipesize = pipesize_default // 2
if pipesize < 512: # the POSIX minimum
pagesize_default = support.get_pagesize()
if pipesize < pagesize_default: # the POSIX minimum
raise unittest.SkipTest(
'default pipesize too small to perform test.')
p = subprocess.Popen(