diff options
author | Hyunkyun Moon <hyunkyun.moon@linecorp.com> | 2023-03-01 23:56:19 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-01 23:56:19 +0900 |
commit | 2f62a5da949cd368a9498e6a03e700f4629fa97f (patch) | |
tree | 50b136092f68e0a97b7280c79bad168f8af77f08 /Lib/test/test_subprocess.py | |
parent | c1748ed59dc30ab99fe69c22bdbab54f93baa57c (diff) | |
download | cpython-git-2f62a5da949cd368a9498e6a03e700f4629fa97f.tar.gz |
gh-95672 skip fcntl when pipesize is smaller than pagesize (gh-102163)
Diffstat (limited to 'Lib/test/test_subprocess.py')
-rw-r--r-- | Lib/test/test_subprocess.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/test/test_subprocess.py b/Lib/test/test_subprocess.py index 727b0e6dc5..3880125807 100644 --- a/Lib/test/test_subprocess.py +++ b/Lib/test/test_subprocess.py @@ -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( |