@@ -753,7 +753,7 @@ index 9e617afb00..41305298d3 100644
753
753
return f'{userbase}/lib/python{version[0]}.{version[1]}/site-packages'
754
754
755
755
diff --git a/Lib/subprocess.py b/Lib/subprocess.py
756
- index ddf1128fdd..a8ade2456d 100644
756
+ index 0311e3a1f8..ca01e9aa16 100644
757
757
--- a/Lib/subprocess.py
758
758
+++ b/Lib/subprocess.py
759
759
@@ -762,6 +762,9 @@
@@ -766,7 +766,7 @@ index ddf1128fdd..a8ade2456d 100644
766
766
_cleanup()
767
767
# Held while anything is calling waitpid before returncode has been
768
768
# updated to prevent clobbering returncode if wait() or poll() are
769
- @@ -1836 ,7 +1839 ,7 @@
769
+ @@ -1834 ,7 +1837 ,7 @@
770
770
else:
771
771
self.returncode = waitstatus_to_exitcode(sts)
772
772
@@ -775,7 +775,7 @@ index ddf1128fdd..a8ade2456d 100644
775
775
_WNOHANG=os.WNOHANG, _ECHILD=errno.ECHILD):
776
776
"""Check if child process has terminated. Returns returncode
777
777
attribute.
778
- @@ -1845 ,6 +1848 ,8 @@
778
+ @@ -1843 ,6 +1846 ,8 @@
779
779
outside of the local scope (nor can any methods it calls).
780
780
781
781
"""
@@ -1123,7 +1123,7 @@ index 5150d5770f..6e0f0bfd5e 100644
1123
1123
1124
1124
@support.reap_threads
1125
1125
diff --git a/Lib/test/test_cmd_line.py b/Lib/test/test_cmd_line.py
1126
- index 051c092eb6..e69bf09c93 100644
1126
+ index a3560b4b1f..082f74ce76 100644
1127
1127
--- a/Lib/test/test_cmd_line.py
1128
1128
+++ b/Lib/test/test_cmd_line.py
1129
1129
@@ -67,6 +67,7 @@
@@ -1150,31 +1150,31 @@ index 051c092eb6..e69bf09c93 100644
1150
1150
def test_undecodable_code(self):
1151
1151
undecodable = b"\xff"
1152
1152
env = os.environ.copy()
1153
- @@ -239 ,6 +242 ,7 @@
1153
+ @@ -273 ,6 +276 ,7 @@
1154
1154
'False False False\n'
1155
1155
'False False True\n')
1156
1156
1157
1157
+ @unittest.skipUnless(os.allows_subprocesses, 'Test requires support for subprocesses.')
1158
1158
def test_unbuffered_output(self):
1159
1159
# Test expected operation of the '-u' switch
1160
1160
for stream in ('stdout', 'stderr'):
1161
- @@ -297 ,6 +301 ,7 @@
1161
+ @@ -331 ,6 +335 ,7 @@
1162
1162
# for empty and unset PYTHONPATH
1163
1163
self.assertEqual(out1, out2)
1164
1164
1165
1165
+ @unittest.skipUnless(os.allows_subprocesses, 'Test requires support for subprocesses.')
1166
1166
def test_displayhook_unencodable(self):
1167
1167
for encoding in ('ascii', 'latin-1', 'utf-8'):
1168
1168
env = os.environ.copy()
1169
- @@ -315 ,6 +320 ,7 @@
1169
+ @@ -349 ,6 +354 ,7 @@
1170
1170
escaped = repr(text).encode(encoding, 'backslashreplace')
1171
1171
self.assertIn(escaped, data)
1172
1172
1173
1173
+ @unittest.skipUnless(os.allows_subprocesses, 'Test requires support for subprocesses.')
1174
1174
def check_input(self, code, expected):
1175
1175
with tempfile.NamedTemporaryFile("wb+") as stdin:
1176
1176
sep = os.linesep.encode('ASCII')
1177
- @@ -390 ,6 +396 ,7 @@
1177
+ @@ -424 ,6 +430 ,7 @@
1178
1178
@unittest.skipIf(os.name != 'posix', "test needs POSIX semantics")
1179
1179
@unittest.skipIf(sys.platform == "vxworks",
1180
1180
"test needs preexec support in subprocess.Popen")
@@ -1415,7 +1415,7 @@ index abd612fcd9..ebf7bc9aa5 100644
1415
1415
"""Test loading extension modules with multi-phase initialization (PEP 489)
1416
1416
"""
1417
1417
diff --git a/Lib/test/test_io.py b/Lib/test/test_io.py
1418
- index d2e387728b..e261c971e1 100644
1418
+ index 1f0210f857..3c689d7493 100644
1419
1419
--- a/Lib/test/test_io.py
1420
1420
+++ b/Lib/test/test_io.py
1421
1421
@@ -602,7 +602,7 @@
@@ -1664,7 +1664,7 @@ index 35933e9c8c..c0c902162f 100644
1664
1664
"""Check if stty returns the same results
1665
1665
1666
1666
diff --git a/Lib/test/test_pdb.py b/Lib/test/test_pdb.py
1667
- index 6c4eaf318e..5a492215d0 100644
1667
+ index 0da449e33e..212930ec25 100644
1668
1668
--- a/Lib/test/test_pdb.py
1669
1669
+++ b/Lib/test/test_pdb.py
1670
1670
@@ -1231,6 +1231,7 @@
@@ -1933,10 +1933,10 @@ index 458998a62f..577cf5f385 100644
1933
1933
cmd = 'for i in 0 1 2 3 4 5 6 7 8 9; do echo testing...; sleep 1; done'
1934
1934
with os.popen(cmd) as p:
1935
1935
diff --git a/Lib/test/test_shutil.py b/Lib/test/test_shutil.py
1936
- index e19af64be0..3be0625aff 100644
1936
+ index e378033acd..6b77a61a20 100644
1937
1937
--- a/Lib/test/test_shutil.py
1938
1938
+++ b/Lib/test/test_shutil.py
1939
- @@ -1679 ,6 +1679 ,8 @@
1939
+ @@ -1681 ,6 +1681 ,8 @@
1940
1940
check_chown(dirname, uid, gid)
1941
1941
1942
1942
@@ -1945,7 +1945,7 @@ index e19af64be0..3be0625aff 100644
1945
1945
class TestWhich(BaseTest, unittest.TestCase):
1946
1946
1947
1947
def setUp(self):
1948
- @@ -2511 ,6 +2513 ,7 @@
1948
+ @@ -2548 ,6 +2550 ,7 @@
1949
1949
self.assertGreaterEqual(size.lines, 0)
1950
1950
1951
1951
@unittest.skipUnless(os.isatty(sys.__stdout__.fileno()), "not on tty")
@@ -2097,7 +2097,7 @@ index aefba4f397..fd3f1108cf 100755
2097
2097
class RecvmsgIntoSCMRightsStreamTest(RecvmsgIntoMixin, SCMRightsTest,
2098
2098
SendrecvmsgUnixStreamTestBase):
2099
2099
diff --git a/Lib/test/test_socketserver.py b/Lib/test/test_socketserver.py
2100
- index c663cc9588..8d5a936f04 100644
2100
+ index c9455adfd8..3ada09dcba 100644
2101
2101
--- a/Lib/test/test_socketserver.py
2102
2102
+++ b/Lib/test/test_socketserver.py
2103
2103
@@ -8,6 +8,7 @@
@@ -2175,7 +2175,7 @@ index 2accad1aee..4824b6c8d0 100644
2175
2175
import distutils.text_file
2176
2176
import distutils.unixccompiler
2177
2177
diff --git a/Lib/test/test_sys.py b/Lib/test/test_sys.py
2178
- index d79151355e..68e2a27f52 100644
2178
+ index ed9b1770ab..ec3157d230 100644
2179
2179
--- a/Lib/test/test_sys.py
2180
2180
+++ b/Lib/test/test_sys.py
2181
2181
@@ -108,6 +108,7 @@
@@ -2302,7 +2302,7 @@ index 5bb3a58b2a..47f9b5e8f9 100644
2302
2302
# Test that tracebacks are correctly printed for encoded source files:
2303
2303
# - correct line number (Issue2384)
2304
2304
diff --git a/Lib/test/test_unicodedata.py b/Lib/test/test_unicodedata.py
2305
- index b552d2bd17..6471bbc39e 100644
2305
+ index edfd860fd5..edbc8ce641 100644
2306
2306
--- a/Lib/test/test_unicodedata.py
2307
2307
+++ b/Lib/test/test_unicodedata.py
2308
2308
@@ -8,6 +8,7 @@
@@ -2543,10 +2543,10 @@ index 6023c1e138..ae5803c4c8 100755
2543
2543
#
2544
2544
# Platform support for Windows
2545
2545
diff --git a/Modules/_ctypes/callproc.c b/Modules/_ctypes/callproc.c
2546
- index f2506de544..707347b622 100644
2546
+ index 18984d15ab..5ce47c4b0a 100644
2547
2547
--- a/Modules/_ctypes/callproc.c
2548
2548
+++ b/Modules/_ctypes/callproc.c
2549
- @@ -1458 ,14 +1458 ,14 @@
2549
+ @@ -1461 ,14 +1461 ,14 @@
2550
2550
2551
2551
if (!PyArg_ParseTuple(args, "O", &name))
2552
2552
return NULL;
@@ -2681,7 +2681,7 @@ index 4aa7e6559a..511d77024c 100644
2681
2681
sin(pi*x), giving accurate results for all finite x (especially x
2682
2682
integral or close to an integer). This is here for use in the
2683
2683
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c
2684
- index 5e33502721..61875c8c7f 100644
2684
+ index f83150f1ef..e696c09cb1 100644
2685
2685
--- a/Modules/posixmodule.c
2686
2686
+++ b/Modules/posixmodule.c
2687
2687
@@ -56,6 +56,8 @@
@@ -2783,7 +2783,7 @@ index 5e33502721..61875c8c7f 100644
2783
2783
}
2784
2784
2785
2785
2786
- @@ -1515 ,7 +1542 ,9 @@
2786
+ @@ -1521 ,7 +1548 ,9 @@
2787
2787
*/
2788
2788
#include <crt_externs.h>
2789
2789
#elif !defined(_MSC_VER) && (!defined(__WATCOMC__) || defined(__QNX__) || defined(__VXWORKS__))
@@ -2793,23 +2793,23 @@ index 5e33502721..61875c8c7f 100644
2793
2793
#endif /* !_MSC_VER */
2794
2794
2795
2795
static PyObject *
2796
- @@ -1531 ,6 +1560 ,7 @@
2796
+ @@ -1537 ,6 +1566 ,7 @@
2797
2797
d = PyDict_New();
2798
2798
if (d == NULL)
2799
2799
return NULL;
2800
2800
+ #if !TARGET_OS_TV && !TARGET_OS_WATCH
2801
2801
#ifdef MS_WINDOWS
2802
2802
/* _wenviron must be initialized in this way if the program is started
2803
2803
through main() instead of wmain(). */
2804
- @@ -1586 ,6 +1616 ,7 @@
2804
+ @@ -1592 ,6 +1622 ,7 @@
2805
2805
Py_DECREF(k);
2806
2806
Py_DECREF(v);
2807
2807
}
2808
2808
+ #endif
2809
2809
return d;
2810
2810
}
2811
2811
2812
- @@ -4745 ,7 +4776 ,12 @@
2812
+ @@ -4751 ,7 +4782 ,12 @@
2813
2813
}
2814
2814
2815
2815
Py_BEGIN_ALLOW_THREADS
@@ -2822,15 +2822,15 @@ index 5e33502721..61875c8c7f 100644
2822
2822
Py_END_ALLOW_THREADS
2823
2823
return result;
2824
2824
}
2825
- @@ -13338 ,6 +13374 ,7 @@
2825
+ @@ -13347 ,6 +13383 ,7 @@
2826
2826
int is_symlink;
2827
2827
int need_stat;
2828
2828
#endif
2829
2829
+ #if !TARGET_OS_TV && !TARGET_OS_WATCH
2830
2830
#ifdef MS_WINDOWS
2831
2831
unsigned long dir_bits;
2832
2832
#endif
2833
- @@ -13398 ,6 +13435 ,7 @@
2833
+ @@ -13407 ,6 +13444 ,7 @@
2834
2834
#endif
2835
2835
2836
2836
return result;
@@ -4615,10 +4615,10 @@ index c4538bd373..c385a04ea3 100644
4615
4615
+ return ret;
4616
4616
+ }
4617
4617
diff --git a/aclocal.m4 b/aclocal.m4
4618
- index b5f9cb0e8d..c0f0e031eb 100644
4618
+ index 04342a4982..b027647376 100644
4619
4619
--- a/aclocal.m4
4620
4620
+++ b/aclocal.m4
4621
- @@ -156 ,7 +156 ,7 @@
4621
+ @@ -365 ,7 +365 ,7 @@
4622
4622
AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl
4623
4623
4624
4624
pkg_failed=no
@@ -4627,7 +4627,7 @@ index b5f9cb0e8d..c0f0e031eb 100644
4627
4627
4628
4628
_PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])
4629
4629
_PKG_CONFIG([$1][_LIBS], [libs], [$2])
4630
- @@ -166 ,11 +166 ,11 @@
4630
+ @@ -375 ,11 +375 ,11 @@
4631
4631
See the pkg-config man page for more details.])
4632
4632
4633
4633
if test $pkg_failed = yes; then
@@ -4641,7 +4641,7 @@ index b5f9cb0e8d..c0f0e031eb 100644
4641
4641
$1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$2" 2>&1`
4642
4642
fi
4643
4643
# Put the nasty error message in config.log where it belongs
4644
- @@ -187 ,7 +187 ,7 @@
4644
+ @@ -396 ,7 +396 ,7 @@
4645
4645
_PKG_TEXT])[]dnl
4646
4646
])
4647
4647
elif test $pkg_failed = untried; then
@@ -4677,7 +4677,7 @@ index ba37cf99e2..9815c16a5c 100755
4677
4677
;;
4678
4678
*)
4679
4679
diff --git a/configure b/configure
4680
- index 1252335472..06a463641d 100755
4680
+ index c7a7291fea..c7bd520c96 100755
4681
4681
--- a/configure
4682
4682
+++ b/configure
4683
4683
@@ -3301,6 +3301,15 @@
@@ -4769,7 +4769,7 @@ index 1252335472..06a463641d 100755
4769
4769
*)
4770
4770
# use dynload_shlib.c and dlopen() if we have it; otherwise stub
4771
4771
# out any dynamic loading
4772
- @@ -18960 ,7 +18993 ,7 @@
4772
+ @@ -18961 ,7 +18994 ,7 @@
4773
4773
echo "creating Modules/Setup.local" >&6
4774
4774
if test ! -f Modules/Setup.local
4775
4775
then
@@ -4778,16 +4778,16 @@ index 1252335472..06a463641d 100755
4778
4778
fi
4779
4779
4780
4780
echo "creating Makefile" >&6
4781
- @@ -18977 ,4 +19010 ,3 @@
4781
+ @@ -18978 ,4 +19011 ,3 @@
4782
4782
echo "" >&6
4783
4783
echo "" >&6
4784
4784
fi
4785
4785
-
4786
4786
diff --git a/configure.ac b/configure.ac
4787
- index 972287a9c4..b989796488 100644
4787
+ index 45e0af4493..2701b68cc3 100644
4788
4788
--- a/configure.ac
4789
4789
+++ b/configure.ac
4790
- @@ -391 ,6 +391 ,15 @@
4790
+ @@ -398 ,6 +398 ,15 @@
4791
4791
*-*-cygwin*)
4792
4792
ac_sys_system=Cygwin
4793
4793
;;
@@ -4803,7 +4803,7 @@ index 972287a9c4..b989796488 100644
4803
4803
*-*-vxworks*)
4804
4804
ac_sys_system=VxWorks
4805
4805
;;
4806
- @@ -440 ,6 +449 ,15 @@
4806
+ @@ -447 ,6 +456 ,15 @@
4807
4807
*-*-cygwin*)
4808
4808
_host_cpu=
4809
4809
;;
@@ -4819,7 +4819,7 @@ index 972287a9c4..b989796488 100644
4819
4819
*-*-vxworks*)
4820
4820
_host_cpu=$host_cpu
4821
4821
;;
4822
- @@ -512 ,6 +530 ,13 @@
4822
+ @@ -519 ,6 +537 ,13 @@
4823
4823
define_xopen_source=no;;
4824
4824
Darwin/@<:@[12]@:>@@<:@0-9@:>@.*)
4825
4825
define_xopen_source=no;;
@@ -4833,7 +4833,7 @@ index 972287a9c4..b989796488 100644
4833
4833
# On AIX 4 and 5.1, mbstate_t is defined only when _XOPEN_SOURCE == 500 but
4834
4834
# used in wcsnrtombs() and mbsnrtowcs() even if _XOPEN_SOURCE is not defined
4835
4835
# or has another value. By not (re)defining it, the defaults come in place.
4836
- @@ -1207 ,11 +1232 ,17 @@
4836
+ @@ -1214 ,11 +1239 ,17 @@
4837
4837
4838
4838
AC_CHECK_TOOLS([READELF], [readelf], [:])
4839
4839
if test "$cross_compiling" = yes; then
@@ -4856,7 +4856,7 @@ index 972287a9c4..b989796488 100644
4856
4856
fi
4857
4857
AC_SUBST(READELF)
4858
4858
4859
- @@ -1594 ,8 +1625 ,6 @@
4859
+ @@ -1601 ,8 +1632 ,6 @@
4860
4860
# tweak BASECFLAGS based on compiler and platform
4861
4861
case $GCC in
4862
4862
yes)
@@ -4865,7 +4865,7 @@ index 972287a9c4..b989796488 100644
4865
4865
AC_MSG_CHECKING(for -Wextra)
4866
4866
ac_save_cc="$CC"
4867
4867
CC="$CC -Wextra -Werror"
4868
- @@ -3644 ,6 +3673 ,10 @@
4868
+ @@ -3651 ,6 +3680 ,10 @@
4869
4869
fi
4870
4870
;;
4871
4871
hp*|HP*) DYNLOADFILE="dynload_hpux.o";;
@@ -4876,7 +4876,7 @@ index 972287a9c4..b989796488 100644
4876
4876
*)
4877
4877
# use dynload_shlib.c and dlopen() if we have it; otherwise stub
4878
4878
# out any dynamic loading
4879
- @@ -5821 ,7 +5854 ,7 @@
4879
+ @@ -5828 ,7 +5861 ,7 @@
4880
4880
echo "creating Modules/Setup.local" >&AS_MESSAGE_FD
4881
4881
if test ! -f Modules/Setup.local
4882
4882
then
@@ -4885,7 +4885,7 @@ index 972287a9c4..b989796488 100644
4885
4885
fi
4886
4886
4887
4887
echo "creating Makefile" >&AS_MESSAGE_FD
4888
- @@ -5838 ,4 +5871 ,3 @@
4888
+ @@ -5845 ,4 +5878 ,3 @@
4889
4889
echo "" >&AS_MESSAGE_FD
4890
4890
echo "" >&AS_MESSAGE_FD
4891
4891
fi
0 commit comments