@@ -755,7 +755,7 @@ index 9b2cd201f3..e47de5d468 100644
755
755
@unittest.skipUnless(sys.platform == 'darwin', "OSX only test")
756
756
def test_mac_ver_with_fork(self):
757
757
diff --git a/Lib/test/test_posix.py b/Lib/test/test_posix.py
758
- index ae25ef5588..2885d5fd52 100644
758
+ index e643d8e5a4..65e0e2d2c6 100644
759
759
--- a/Lib/test/test_posix.py
760
760
+++ b/Lib/test/test_posix.py
761
761
@@ -2,6 +2,7 @@
@@ -1029,7 +1029,7 @@ index 9c6561c099..ccccfb8b0b 100644
1029
1029
# Same as above, but a delay gets introduced after the thread's
1030
1030
# Python code returned but before the thread state is deleted.
1031
1031
diff --git a/Lib/test/test_venv.py b/Lib/test/test_venv.py
1032
- index 74039f59f7..36dc82f871 100644
1032
+ index decf021c64..7c824c8278 100644
1033
1033
--- a/Lib/test/test_venv.py
1034
1034
+++ b/Lib/test/test_venv.py
1035
1035
@@ -19,7 +19,7 @@
@@ -1038,7 +1038,7 @@ index 74039f59f7..36dc82f871 100644
1038
1038
skip_if_broken_multiprocessing_synchronize, verbose,
1039
1039
- requires_subprocess, is_emscripten, is_wasi,
1040
1040
+ requires_subprocess, is_apple_mobile, is_emscripten, is_wasi,
1041
- requires_venv_with_pip)
1041
+ requires_venv_with_pip, TEST_HOME_DIR )
1042
1042
from test.support.os_helper import (can_symlink, EnvironmentVarGuard, rmtree)
1043
1043
import unittest
1044
1044
@@ -40,6 +40,8 @@
@@ -1313,7 +1313,7 @@ index aa93e756c6..fcf3784c2f 100644
1313
1313
sin(pi*x), giving accurate results for all finite x (especially x
1314
1314
integral or close to an integer). This is here for use in the
1315
1315
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c
1316
- index 378032501f..25a035acd7 100644
1316
+ index 309982af82..2afccdc969 100644
1317
1317
--- a/Modules/posixmodule.c
1318
1318
+++ b/Modules/posixmodule.c
1319
1319
@@ -69,6 +69,8 @@
@@ -1325,7 +1325,7 @@ index 378032501f..25a035acd7 100644
1325
1325
#if defined(__has_builtin)
1326
1326
#if __has_builtin(__builtin_available)
1327
1327
#define HAVE_BUILTIN_AVAILABLE 1
1328
- @@ -325 ,6 +327 ,26 @@
1328
+ @@ -329 ,6 +331 ,26 @@
1329
1329
# endif /* _MSC_VER */
1330
1330
#endif /* ! __WATCOMC__ || __QNX__ */
1331
1331
@@ -1352,7 +1352,7 @@ index 378032501f..25a035acd7 100644
1352
1352
/*[clinic input]
1353
1353
# one of the few times we lie about this name!
1354
1354
module os
1355
- @@ -1573 ,7 +1595 ,9 @@
1355
+ @@ -1577 ,7 +1599 ,9 @@
1356
1356
*/
1357
1357
#include <crt_externs.h>
1358
1358
#elif !defined(_MSC_VER) && (!defined(__WATCOMC__) || defined(__QNX__) || defined(__VXWORKS__))
@@ -1362,23 +1362,23 @@ index 378032501f..25a035acd7 100644
1362
1362
#endif /* !_MSC_VER */
1363
1363
1364
1364
static PyObject *
1365
- @@ -1589 ,6 +1613 ,7 @@
1365
+ @@ -1593 ,6 +1617 ,7 @@
1366
1366
d = PyDict_New();
1367
1367
if (d == NULL)
1368
1368
return NULL;
1369
1369
+ #if !TARGET_OS_TV && !TARGET_OS_WATCH
1370
1370
#ifdef MS_WINDOWS
1371
1371
/* _wenviron must be initialized in this way if the program is started
1372
1372
through main() instead of wmain(). */
1373
- @@ -1642 ,6 +1667 ,7 @@
1373
+ @@ -1646 ,6 +1671 ,7 @@
1374
1374
Py_DECREF(k);
1375
1375
Py_DECREF(v);
1376
1376
}
1377
1377
+ #endif
1378
1378
return d;
1379
1379
}
1380
1380
1381
- @@ -4935 ,6 +4961 ,9 @@
1381
+ @@ -4939 ,6 +4965 ,9 @@
1382
1382
/*[clinic end generated code: output=290fc437dd4f33a0 input=86a58554ba6094af]*/
1383
1383
{
1384
1384
long result;
@@ -1388,23 +1388,23 @@ index 378032501f..25a035acd7 100644
1388
1388
const char *bytes = PyBytes_AsString(command);
1389
1389
1390
1390
if (PySys_Audit("os.system", "(O)", command) < 0) {
1391
- @@ -4944 ,6 +4973 ,7 @@
1391
+ @@ -4948 ,6 +4977 ,7 @@
1392
1392
Py_BEGIN_ALLOW_THREADS
1393
1393
result = system(bytes);
1394
1394
Py_END_ALLOW_THREADS
1395
1395
+ #endif
1396
1396
return result;
1397
1397
}
1398
1398
#endif
1399
- @@ -13700 ,6 +13730 ,7 @@
1399
+ @@ -13736 ,6 +13766 ,7 @@
1400
1400
int is_symlink;
1401
1401
int need_stat;
1402
1402
#endif
1403
1403
+ #if !TARGET_OS_TV && !TARGET_OS_WATCH
1404
1404
#ifdef MS_WINDOWS
1405
1405
unsigned long dir_bits;
1406
1406
#endif
1407
- @@ -13760 ,6 +13791 ,7 @@
1407
+ @@ -13796 ,6 +13827 ,7 @@
1408
1408
#endif
1409
1409
1410
1410
return result;
0 commit comments