Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions Lib/test/support/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -532,6 +532,10 @@ def requires_legacy_unicode_capi():

has_fork_support = hasattr(os, "fork") and not is_emscripten and not is_wasi

# From python 3.12.6
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am sorry to confuse you. Version was required for commit message, but this is also fine too

is_s390x = hasattr(os, 'uname') and os.uname().machine == 's390x'
skip_on_s390x = unittest.skipIf(is_s390x, 'skipped on s390x')

def requires_fork():
return unittest.skipUnless(has_fork_support, "requires working os.fork()")

Expand Down
Loading
Loading