@@ -723,7 +723,7 @@ index 66a16a6839..dd6444892d 100644
723
723
+ _CASE_INSENSITIVE_PLATFORMS_STR_KEY)
724
724
725
725
diff --git a/Lib/os.py b/Lib/os.py
726
- index 9853e37c61..7d569e55d5 100644
726
+ index 9853e37c61..cabea71cca 100644
727
727
--- a/Lib/os.py
728
728
+++ b/Lib/os.py
729
729
@@ -34,7 +34,7 @@
@@ -740,7 +740,7 @@ index 9853e37c61..7d569e55d5 100644
740
740
del _fscodec
741
741
742
742
+
743
- +if sys.platform in ('iOS ', 'tvos', 'watchos'):
743
+ +if sys.platform in ('ios ', 'tvos', 'watchos'):
744
744
+ allows_subprocesses = False
745
745
+else:
746
746
+ allows_subprocesses = True
@@ -11421,15 +11421,15 @@ index 878658827c..0bc557f9e0 100644
11421
11421
return f'{userbase}/lib/python{version[0]}.{version[1]}/site-packages'
11422
11422
11423
11423
diff --git a/Lib/subprocess.py b/Lib/subprocess.py
11424
- index 3f99be551c..447fd60f35 100644
11424
+ index 3f99be551c..6a4ad34d5c 100644
11425
11425
--- a/Lib/subprocess.py
11426
11426
+++ b/Lib/subprocess.py
11427
11427
@@ -686,6 +686,9 @@
11428
11428
restore_signals=True, start_new_session=False,
11429
11429
pass_fds=(), *, encoding=None, errors=None, text=None):
11430
11430
"""Create new Popen instance."""
11431
11431
+ if not os.allows_subprocesses:
11432
- + raise RuntimeError("Subprocesses are not supported on this platform. ")
11432
+ + raise RuntimeError(f "Subprocesses are not supported on {sys.platform} ")
11433
11433
+
11434
11434
_cleanup()
11435
11435
# Held while anything is calling waitpid before returncode has been
0 commit comments