classification
Title: test_uuid.py and test_ssl.py failure on OSes without os.fork
Type: behavior Stage: patch review
Components: Tests Versions: Python 3.10
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: pxinwr, terry.reedy, vstinner
Priority: normal Keywords: patch

Created on 2020-07-30 06:06 by pxinwr, last changed 2020-08-02 19:41 by terry.reedy.

Pull Requests
URL Status Linked Edit
PR 21684 open pxinwr, 2020-07-30 06:17
Messages (3)
msg374599 - (view) Author: Peixing Xin (pxinwr) * Date: 2020-07-30 06:06
Some operating systems, for example VxWorks RTOS, don't support fork(). Some test cases that depend on os.fork() will fail. 
test_ssl.BasicSocketTests.test_random_fork and test_uuid.TestUUIDWithExtModule.testIssue8621 fail are this case.
msg374689 - (view) Author: Terry J. Reedy (terry.reedy) * (Python committer) Date: 2020-08-02 19:28
Are this and similar issues theoretical ("if Python were implemented on such systems...") or actual ("python is implemented on one such system (VxWorks?) and these tests fail").  If the latter, does the test suite pass at least with respect to, in this case, os.fork?  I expect that there are other tests that depend on os.fork, but maybe they are already guarded.
msg374690 - (view) Author: Terry J. Reedy (terry.reedy) * (Python committer) Date: 2020-08-02 19:41
Similar issues:
#41440 os.cpu_count
#41442 unix shell
#41443 some posix.x functions

PR 21684 is fine as far as it goes, and I could merge and backport, but I don't know about our test policy with respect to need and minimized OSes.  We do not put conditions for unsupported oses in production code, but I don't know about skips for such systems in tests.

Victor, do you know, or know who would?
History
Date User Action Args
2020-08-02 19:41:20terry.reedysetnosy: + vstinner

messages: + msg374690
title: test_uuid.py and test_ssl.py failures on OS without os.fork -> test_uuid.py and test_ssl.py failure on OSes without os.fork
2020-08-02 19:28:45terry.reedysetnosy: + terry.reedy
messages: + msg374689
2020-08-02 19:17:12terry.reedysettitle: some test cases in test_uuid.py and test_ssl.py fail on some operating systems because of no os.fork support -> test_uuid.py and test_ssl.py failures on OS without os.fork
2020-07-30 06:17:52pxinwrsetkeywords: + patch
stage: patch review
pull_requests: + pull_request20827
2020-07-30 06:06:45pxinwrcreate