Title: and failure on OSes without os.fork (VxWorks RTOS)
Type: behavior Stage: patch review
Components: Tests Versions: Python 3.10
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: pxinwr, terry.reedy
Priority: normal Keywords: patch

Created on 2020-07-30 06:06 by pxinwr, last changed 2020-08-04 16:03 by vstinner.

Pull Requests
URL Status Linked Edit
PR 21684 open pxinwr, 2020-07-30 06:17
Messages (4)
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?
msg374789 - (view) Author: Peixing Xin (pxinwr) * Date: 2020-08-04 03:15
Terry, VxWorks has not been officially supported by community. Certainly no builtbot for VxWorks connected yet. I am porting cpython onto VxWorks RTOS now. Several issues you listed are the part of my porting effort. So I think we don't need to backport the fix to previous versions.
Date User Action Args
2020-08-04 16:03:36vstinnersetnosy: - vstinner
2020-08-04 03:15:04pxinwrsetmessages: + msg374789
2020-08-03 23:01:30vstinnersettitle: and failure on OSes without os.fork -> and failure on OSes without os.fork (VxWorks RTOS)
2020-08-02 19:41:20terry.reedysetnosy: + vstinner

messages: + msg374690
title: and failures on OS without os.fork -> and 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 and fail on some operating systems because of no os.fork support -> and 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