mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
gh-95672 skip fcntl when pipesize is smaller than pagesize (gh-102163)
This commit is contained in:
parent
c1748ed59d
commit
2f62a5da94
4 changed files with 26 additions and 3 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue