diff --git a/dev-lang/python/patches/python3.13-3.13.3.patchset b/dev-lang/python/patches/python3.13-3.13.5.patchset similarity index 94% rename from dev-lang/python/patches/python3.13-3.13.3.patchset rename to dev-lang/python/patches/python3.13-3.13.5.patchset index c8959720a..5560bc950 100644 --- a/dev-lang/python/patches/python3.13-3.13.3.patchset +++ b/dev-lang/python/patches/python3.13-3.13.5.patchset @@ -1,4 +1,4 @@ -From c1ff79287e66f75526627c52eb4abbc6ae8f82a6 Mon Sep 17 00:00:00 2001 +From c56ab39bf40f8fda707621f6e79e672ddf8905b1 Mon Sep 17 00:00:00 2001 From: Oscar Lesta Date: Sun, 8 Oct 2023 01:02:25 -0300 Subject: initial Haiku patch @@ -9,7 +9,7 @@ over 3.12's sources. Parts of that original patch were split into specific commit/patches. diff --git a/Include/pyport.h b/Include/pyport.h -index 2ba81a4..8ba7902 100644 +index 72a157e..67141ae 100644 --- a/Include/pyport.h +++ b/Include/pyport.h @@ -506,7 +506,7 @@ extern "C" { @@ -22,7 +22,7 @@ index 2ba81a4..8ba7902 100644 // See PyUnicode_DecodeFSDefaultAndSize(), PyUnicode_EncodeFSDefault(), // Py_DecodeLocale() and Py_EncodeLocale(). diff --git a/Makefile.pre.in b/Makefile.pre.in -index 3bd4495..1b4c40b 100644 +index 70d5495..737c1e0 100644 --- a/Makefile.pre.in +++ b/Makefile.pre.in @@ -149,7 +149,7 @@ BINDIR= @bindir@ @@ -133,7 +133,7 @@ index 3fe18e7..d0e1872 100644 #endif diff --git a/Modules/socketmodule.h b/Modules/socketmodule.h -index 09fd70f..97e15d2 100644 +index 8480590..ac7b78c 100644 --- a/Modules/socketmodule.h +++ b/Modules/socketmodule.h @@ -113,6 +113,10 @@ typedef int socklen_t; @@ -148,7 +148,7 @@ index 09fd70f..97e15d2 100644 #include #include diff --git a/configure.ac b/configure.ac -index 3fcb189..8e54330 100644 +index 2a03756..7551412 100644 --- a/configure.ac +++ b/configure.ac @@ -1573,6 +1573,16 @@ if test $enable_shared = "yes"; then @@ -185,7 +185,7 @@ index 3fcb189..8e54330 100644 # -u libsys_s pulls in all symbols in libsys Darwin/*|iOS/*) LINKFORSHARED="$extra_undefs -framework CoreFoundation" -@@ -5825,6 +5836,7 @@ AC_CHECK_FUNC([__fpu_control], +@@ -5837,6 +5848,7 @@ AC_CHECK_FUNC([__fpu_control], AC_SUBST([LIBM]) case $ac_sys_system in Darwin) ;; @@ -197,17 +197,17 @@ index 3fcb189..8e54330 100644 2.48.1 -From c7782a95c6d08a325210ceb285cdb2d4422ed32b Mon Sep 17 00:00:00 2001 +From 94a148592144fcc635816fc49349e491da7130da Mon Sep 17 00:00:00 2001 From: Jerome Duval Date: Sun, 16 Apr 2017 10:05:42 +0200 Subject: fix for negative errnos diff --git a/Lib/subprocess.py b/Lib/subprocess.py -index 4a9a64e..5ab9e22 100644 +index ffc3fdf..690ea26 100644 --- a/Lib/subprocess.py +++ b/Lib/subprocess.py -@@ -1954,6 +1954,8 @@ class Popen: +@@ -1957,6 +1957,8 @@ class Popen: SubprocessError) if issubclass(child_exception_type, OSError) and hex_errno: errno_num = int(hex_errno, 16) @@ -235,7 +235,7 @@ index daec4ad..1647199 100644 2.48.1 -From 6c0931c50128771a78124a75894030cb534a3d16 Mon Sep 17 00:00:00 2001 +From 971b69ba2be950aaa2b247732838985427676c9b Mon Sep 17 00:00:00 2001 From: Oscar Lesta Date: Sun, 8 Oct 2023 20:06:31 -0300 Subject: Implement CTypes's find_library for Haiku @@ -332,7 +332,7 @@ index 117bf06..6301aa2 100644 2.48.1 -From 88736af1e86b217933d7ecf1ee82df431f60bc79 Mon Sep 17 00:00:00 2001 +From 3a4a3a492eaa0460aaf710547a4ecd7ba9a8b9ed Mon Sep 17 00:00:00 2001 From: Philipp Wolfer Date: Mon, 23 Sep 2019 09:14:58 +0200 Subject: webbrowser: Support for default browsers on Haiku @@ -359,14 +359,14 @@ index 2f9555a..90bea57 100755 2.48.1 -From 24f65166fb31b9d79b31697f1a3a5298368cce2b Mon Sep 17 00:00:00 2001 +From 809e9ca0f45f8473a2feb4a8309f6cc1f359599f Mon Sep 17 00:00:00 2001 From: Jerome Duval Date: Fri, 4 Oct 2019 22:02:35 +0200 Subject: since 3.8, don't reinit locks on fork. diff --git a/Lib/logging/__init__.py b/Lib/logging/__init__.py -index aa9b79d..b99e1e0 100644 +index 357d127..009fc95 100644 --- a/Lib/logging/__init__.py +++ b/Lib/logging/__init__.py @@ -253,7 +253,7 @@ def _afterFork(): @@ -382,7 +382,7 @@ index aa9b79d..b99e1e0 100644 2.48.1 -From 0decfe94924e50eabe6f34cbddb3e79708e98377 Mon Sep 17 00:00:00 2001 +From 7dbc00dadbdbc1fd76f0adbd9a15a3f7a3d90bf2 Mon Sep 17 00:00:00 2001 From: Jerome Duval Date: Fri, 15 May 2020 15:20:57 +0200 Subject: handle errors returned by internal_connect() @@ -390,10 +390,10 @@ Subject: handle errors returned by internal_connect() upstream bug #40628 by Ryan C. Gordon diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c -index e2afe50..a41aaca 100644 +index 9a7c977..5a9bcfb 100644 --- a/Modules/socketmodule.c +++ b/Modules/socketmodule.c -@@ -3534,7 +3534,7 @@ sock_connect(PySocketSockObject *s, PyObject *addro) +@@ -3536,7 +3536,7 @@ sock_connect(PySocketSockObject *s, PyObject *addro) } res = internal_connect(s, SAS2SA(&addrbuf), addrlen, 1); @@ -402,7 +402,7 @@ index e2afe50..a41aaca 100644 return NULL; Py_RETURN_NONE; -@@ -3565,7 +3565,7 @@ sock_connect_ex(PySocketSockObject *s, PyObject *addro) +@@ -3567,7 +3567,7 @@ sock_connect_ex(PySocketSockObject *s, PyObject *addro) } res = internal_connect(s, SAS2SA(&addrbuf), addrlen, 0); @@ -415,14 +415,14 @@ index e2afe50..a41aaca 100644 2.48.1 -From 02a638d1ba2fcb67b6b7da45803b86322df43bae Mon Sep 17 00:00:00 2001 +From b13974f4992a94b1b0bd8738a9cb80b5c0dbd858 Mon Sep 17 00:00:00 2001 From: Jerome Duval Date: Mon, 19 Oct 2020 18:03:09 +0200 Subject: ttyname_r can use MAXPATHLEN diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c -index 601145e..754baa9 100644 +index dc7d1e8..d885c27 100644 --- a/Modules/posixmodule.c +++ b/Modules/posixmodule.c @@ -3318,11 +3318,14 @@ static PyObject * @@ -445,7 +445,7 @@ index 601145e..754baa9 100644 2.48.1 -From 862f6fb3121e0ecd9725d26b0ab4e22fe81d4649 Mon Sep 17 00:00:00 2001 +From 904c928e0c0894347b76c77bbc18c1c3efc1af9c Mon Sep 17 00:00:00 2001 From: Oscar Lesta Date: Mon, 24 Oct 2022 20:04:10 -0300 Subject: Lib/test: require the "largefile" usage flag for I/O heavy tests. @@ -456,7 +456,7 @@ This avoids needing several GBs of storage to run the tests (unless the "largefile" resource usage flag is enabled). diff --git a/Lib/test/test_io.py b/Lib/test/test_io.py -index 1124955..614aff8 100644 +index 0da611a..92aa08e 100644 --- a/Lib/test/test_io.py +++ b/Lib/test/test_io.py @@ -628,7 +628,7 @@ class IOTest(unittest.TestCase): @@ -498,7 +498,7 @@ index a1cf538..c04d9e3 100644 2.48.1 -From b0f164c467dbc7d8f8a24b650639df089d12538c Mon Sep 17 00:00:00 2001 +From 579c6f1ffcbe513f5ea82c243c154d947276f054 Mon Sep 17 00:00:00 2001 From: Oscar Lesta Date: Sat, 27 Jul 2024 04:51:52 -0300 Subject: _getuserbase(), getsitepackages(), and INSTALL_SCHEMES for Haiku. @@ -525,10 +525,10 @@ by me, plus: The idea was to have all _getuserbase()/INSTALL_SCHEMES related changes in "one place". diff --git a/Lib/site.py b/Lib/site.py -index 89a81c5..3477bf6 100644 +index aedf363..a65e8da 100644 --- a/Lib/site.py +++ b/Lib/site.py -@@ -306,6 +306,14 @@ def _getuserbase(): +@@ -307,6 +307,14 @@ def _getuserbase(): return joinuser("~", "Library", sys._framework, "%d.%d" % sys.version_info[:2]) @@ -543,7 +543,7 @@ index 89a81c5..3477bf6 100644 return joinuser("~", ".local") -@@ -398,7 +406,31 @@ def getsitepackages(prefixes=None): +@@ -399,7 +407,31 @@ def getsitepackages(prefixes=None): abi_thread = 't' else: abi_thread = '' @@ -714,7 +714,7 @@ index aca02c0..e7ff98d 100644 2.48.1 -From 30a2e9f950bcad453ca51d1a61ba0680fc2389a6 Mon Sep 17 00:00:00 2001 +From 07379687c88ff59703555a0f172e0beb51164154 Mon Sep 17 00:00:00 2001 From: Oscar Lesta Date: Mon, 12 Feb 2024 08:39:38 -0300 Subject: Fix location of REPL's history file. @@ -725,10 +725,10 @@ Content-Transfer-Encoding: 8bit Adapted from previous patches by Jérôme Duval. diff --git a/Lib/site.py b/Lib/site.py -index 3477bf6..cfd4e49 100644 +index a65e8da..81eff66 100644 --- a/Lib/site.py +++ b/Lib/site.py -@@ -505,8 +505,18 @@ def gethistoryfile(): +@@ -506,8 +506,18 @@ def gethistoryfile(): history = os.environ.get("PYTHON_HISTORY") if history: return history @@ -753,7 +753,7 @@ index 3477bf6..cfd4e49 100644 2.48.1 -From 92e9504e82d1fa951dd32c3ce8f0dc024c007f9f Mon Sep 17 00:00:00 2001 +From d6588ea27a7d69ff89648e9aae6924f9c8cec398 Mon Sep 17 00:00:00 2001 From: Oscar Lesta Date: Sun, 8 Oct 2023 17:02:19 -0300 Subject: Use spawn instead of fork for multiprocessing. @@ -790,7 +790,7 @@ https://docs.python.org/3.12/library/multiprocessing.html#contexts-and-start-met So, we might be in the clear switching to "spawn" now. diff --git a/Lib/multiprocessing/context.py b/Lib/multiprocessing/context.py -index de8a264..02a301e 100644 +index f395e8b..c286964 100644 --- a/Lib/multiprocessing/context.py +++ b/Lib/multiprocessing/context.py @@ -320,7 +320,7 @@ if sys.platform != 'win32': @@ -806,7 +806,7 @@ index de8a264..02a301e 100644 2.48.1 -From 8283651371ed8ac3d36b688ad1ecf90a6c75bd94 Mon Sep 17 00:00:00 2001 +From 3d7fb2fc45de9fb8c0a34b4ae45591f499de6a15 Mon Sep 17 00:00:00 2001 From: Oscar Lesta Date: Sun, 10 Dec 2023 19:50:22 -0300 Subject: Miscellaneous "Lib/test/" fixes for Haiku. @@ -817,10 +817,10 @@ Content-Transfer-Encoding: 8bit test_fileio.py fix from "initial Haiku patch" by Jérôme Duval. diff --git a/Lib/test/datetimetester.py b/Lib/test/datetimetester.py -index 952176b..2a23ff0 100644 +index 44c5b28..994e39b 100644 --- a/Lib/test/datetimetester.py +++ b/Lib/test/datetimetester.py -@@ -6086,6 +6086,9 @@ def pairs(iterable): +@@ -6089,6 +6089,9 @@ def pairs(iterable): class ZoneInfo(tzinfo): zoneroot = '/usr/share/zoneinfo' @@ -846,7 +846,7 @@ index 0611d17..ce7c87d 100644 2.48.1 -From 3ede5eb2e516df3efb2ee15fd1f5d4214ddc9d79 Mon Sep 17 00:00:00 2001 +From 78b0c0b698dcb6f074753c5216828d6e2b4885c1 Mon Sep 17 00:00:00 2001 From: Oscar Lesta Date: Mon, 12 Feb 2024 10:50:34 -0300 Subject: Fix build on nightlies, following the addition of kqueue. @@ -912,7 +912,7 @@ index 5bd9b77..88e29a4 100644 2.48.1 -From 06130abe2fc72c3c644811ac9012beb4dc9724df Mon Sep 17 00:00:00 2001 +From db36a890530d6bb0d3cd90011ee8b7384fef6f76 Mon Sep 17 00:00:00 2001 From: Alexander von Gluck IV Date: Thu, 14 Mar 2024 12:54:33 -0500 Subject: config.guess: Update to universal haiku arch guessing @@ -942,7 +942,7 @@ index e81d3ae..366429c 100755 2.48.1 -From 4ff86bb269b52cbdf67b33afcf22b880ad4a2b9d Mon Sep 17 00:00:00 2001 +From 60ebd9c09d2a9f5541b2d3516cd43916ba331374 Mon Sep 17 00:00:00 2001 From: Oscar Lesta Date: Fri, 9 Aug 2024 13:38:28 -0300 Subject: fix test_utf8_mode. @@ -965,7 +965,7 @@ index f668810..a55a8e4 100644 2.48.1 -From b9e64a6a7fc28878a05df394477b149386138baa Mon Sep 17 00:00:00 2001 +From a090a0dc8ac888428fbe4035113121ca510132ee Mon Sep 17 00:00:00 2001 From: Oscar Lesta Date: Fri, 9 Aug 2024 14:35:04 -0300 Subject: Fix test_site. @@ -983,10 +983,10 @@ Lib/site.py changes should eventually be merged with previous commits. Leaving the changes here now for easier review. diff --git a/Lib/site.py b/Lib/site.py -index cfd4e49..b414150 100644 +index 81eff66..ca16495 100644 --- a/Lib/site.py +++ b/Lib/site.py -@@ -307,12 +307,8 @@ def _getuserbase(): +@@ -308,12 +308,8 @@ def _getuserbase(): "%d.%d" % sys.version_info[:2]) if sys.platform.startswith('haiku'): @@ -1001,7 +1001,7 @@ index cfd4e49..b414150 100644 return joinuser("~", ".local") -@@ -418,18 +414,10 @@ def getsitepackages(prefixes=None): +@@ -419,18 +415,10 @@ def getsitepackages(prefixes=None): # For .hpkg installed under ~/config/ (pkgman install -H) # ("pip install --user" uses ~/config/non-packaged/, and gets # handled by the "haiku_user" install scheme. @@ -1055,7 +1055,7 @@ index 57f4f1e..841c24a 100644 2.48.1 -From a617a93b6110e6bdf2b7c79ba91110bc3ab168f1 Mon Sep 17 00:00:00 2001 +From 7917c7c54c535c86d0ca23ec226d62c4aadfc2fd Mon Sep 17 00:00:00 2001 From: Oscar Lesta Date: Fri, 9 Aug 2024 15:37:13 -0300 Subject: Fix test_sysconfig. @@ -1098,7 +1098,7 @@ index e7ff98d..017c676 100644 2.48.1 -From 8e1d4e088545b103b11b4f7fb985492e7780a060 Mon Sep 17 00:00:00 2001 +From 222255fc09d77b71c6b7d3b6f5e91fc8b6a375bc Mon Sep 17 00:00:00 2001 From: Oscar Lesta Date: Sun, 29 Sep 2024 03:01:27 -0300 Subject: Partially fix test_compileall by skipping tests that need hardlink @@ -1106,7 +1106,7 @@ Subject: Partially fix test_compileall by skipping tests that need hardlink diff --git a/Lib/test/support/os_helper.py b/Lib/test/support/os_helper.py -index ae01644..b701fd9 100644 +index 26c467a..4969750 100644 --- a/Lib/test/support/os_helper.py +++ b/Lib/test/support/os_helper.py @@ -207,6 +207,8 @@ def can_hardlink(): @@ -1134,7 +1134,7 @@ index 21ecebc..632fc1c 100644 2.48.1 -From d28046562d65e17576f9cc4eed86cf1ab6953ddf Mon Sep 17 00:00:00 2001 +From 648a41cedebd802512eb1c8a5350b5a73dfad063 Mon Sep 17 00:00:00 2001 From: Oscar Lesta Date: Thu, 9 May 2024 15:16:26 -0300 Subject: Fix 3.13.0 build. @@ -1147,7 +1147,7 @@ Previous Python versions had both the time out and the "|| true". Some of the test run in that PGO stage sadly still fail on Haiku. diff --git a/Makefile.pre.in b/Makefile.pre.in -index 1b4c40b..c46e950 100644 +index 737c1e0..cb10114 100644 --- a/Makefile.pre.in +++ b/Makefile.pre.in @@ -752,7 +752,7 @@ profile-run-stamp: @@ -1159,7 +1159,7 @@ index 1b4c40b..c46e950 100644 $(LLVM_PROF_MERGER) # Remove profile generation binary since we are done with it. $(MAKE) clean-retain-profile -@@ -2029,7 +2029,7 @@ $(LIBRARY_OBJS) $(MODOBJS) Programs/python.o: $(PYTHON_HEADERS) +@@ -2035,7 +2035,7 @@ $(LIBRARY_OBJS) $(MODOBJS) Programs/python.o: $(PYTHON_HEADERS) TESTOPTS= $(EXTRATESTOPTS) TESTPYTHON= $(RUNSHARED) $(PYTHON_FOR_BUILD) $(TESTPYTHONOPTS) TESTRUNNER= $(TESTPYTHON) -m test @@ -1185,14 +1185,14 @@ index 4d3fb65..be95e7d 100644 2.48.1 -From 1af03ce03c52e186d6699b738243527b8c26b6d2 Mon Sep 17 00:00:00 2001 +From a80291d2bd8144ea5a1cdc040b635aa2046a4f3b Mon Sep 17 00:00:00 2001 From: Oscar Lesta Date: Sat, 5 Oct 2024 07:32:17 -0300 Subject: Avoid forcing "-g" on LTO builds, unless Py_DEBUG is defined. diff --git a/configure.ac b/configure.ac -index 8e54330..e197041 100644 +index 7551412..410e62b 100644 --- a/configure.ac +++ b/configure.ac @@ -2069,7 +2069,9 @@ if test "$Py_LTO" = 'true' ; then diff --git a/dev-lang/python/python3.13-3.13.3.recipe b/dev-lang/python/python3.13-3.13.5.recipe similarity index 87% rename from dev-lang/python/python3.13-3.13.3.recipe rename to dev-lang/python/python3.13-3.13.5.recipe index 1668e1332..58566103f 100644 --- a/dev-lang/python/python3.13-3.13.3.recipe +++ b/dev-lang/python/python3.13-3.13.5.recipe @@ -13,7 +13,7 @@ LICENSE="Python" COPYRIGHT="1990-2025 Python Software Foundation" REVISION="1" SOURCE_URI="https://www.python.org/ftp/python/$portVersion/Python-$portVersion.tar.xz" -CHECKSUM_SHA256="40f868bcbdeb8149a3149580bb9bfd407b3321cd48f0be631af955ac92c0e041" +CHECKSUM_SHA256="93e583f243454e6e9e4588ca2c2662206ad961659863277afcdb96801647d640" SOURCE_DIR="Python-$portVersion" pyShortVer="${portVersion%.*}" @@ -81,7 +81,6 @@ REQUIRES=" lib:libffi$secondaryArchSuffix lib:libintl$secondaryArchSuffix lib:liblzma$secondaryArchSuffix -# lib:libmpdec$secondaryArchSuffix # bundled libmpdecimal scheduled for removal on 3.15 lib:libncursesw$secondaryArchSuffix lib:libsqlite3$secondaryArchSuffix # >= 3.15.2 lib:libssl$secondaryArchSuffix @@ -94,7 +93,6 @@ BUILD_REQUIRES=" devel:libexpat$secondaryArchSuffix devel:libffi$secondaryArchSuffix devel:liblzma$secondaryArchSuffix -# devel:libmpdec$secondaryArchSuffix # bundled libmpdecimal scheduled for removal on 3.15 devel:libncursesw$secondaryArchSuffix devel:libsqlite3$secondaryArchSuffix devel:libssl$secondaryArchSuffix @@ -163,7 +161,7 @@ BUILD() if $optimizedBuild; then export OPT+=" -O3" - maybeEnableOptimizations="--enable-optimizations" + maybeEnableOptimizations="--enable-optimizations --with-lto" else export OPT+=" -O0" maybeEnableOptimizations= @@ -179,13 +177,11 @@ BUILD() --with-system-expat \ --with-system-libmpdec=no \ --with-tzpath=$(findpaths -c : B_FIND_PATH_DATA_DIRECTORY zoneinfo) \ - --without-static-libpython \ - --with-lto - + --without-static-libpython # --disable-test-modules # can speed up the build a bit. # # --with-lto # Issues with enabling this flag: - # - Is too CPU intensive (at least 2.5x slower build times). + # - Is very CPU intensive (at least 2.5x slower build times). # - 30% final package size increase, unless "-g" is removed from 'LTOFLAGS="$LTOFLAGS -g"' # on "configure.ac". # but resulting Python is about 5% faster, at least on the "pystone.py" syntetic benchmark. @@ -296,10 +292,10 @@ INSTALL() # "hp --test"'s chroot. (test_sysconfig.MakefileTests.test_parse_makefile, for example). # Problem is "os.getcwd()" will return wrong data, causing some file operations to fail. -# For reference, results on hrev57937+129 (64 bits, VMware, no-RAMFS): -# Total duration: 9 min 42 sec -# Total tests: run=40,337 failures=672 skipped=1,798 -# Total test files: run=465/445 failed=27 skipped=32 resource_denied=7 rerun=27 +# For reference, results on hrev57937+129 (64 bits, VMware, RAMFS): +# Total duration: 14 min 29 sec +# Total tests: run=38,756 failures=662 skipped=1,811 +# Total test files: run=470/439 failed=37 skipped=31 resource_denied=7 rerun=38 TEST() { # Remove tests data left-overs, if any: @@ -308,8 +304,9 @@ TEST() make $jobArgs test EXTRATESTOPTS="--cleanup" local test_options=( + # --single-process + # Use this to get same test order on different runs (actual value not important). - -r --randseed 7858065 # Print the names of the 10 slowest tests. @@ -389,40 +386,54 @@ TEST() -x test_httpservers -x test_poplib -x test_xmlrpc + + # 3.13.5 (on hrev58907, using ramfs, at least) + -x test_smtplib # seems to dead-lock sometimes (0% CPU usage on some "pthread func") + -x test_signal # seems to dead-lock sometimes (0% CPU usage on some "pthread func") + -x test_unittest # 100% CPU usage on one core. + + # 3.13.5 hang at least once (on beta5, using ramfs, at least). + -x test_urllib2_localnet + -x test_imaplib + -x test_docxmlrpc # hang on next run after disabling the ones above. ) local tests_that_fail=( - test__locale + test__locale # fails on 'test_alt_digits_nl_langinfo' and 'test_era_nl_langinfo' + test_ast # seg-faulted at least once on 'test_recursion_direct' test_c_locale_coercion - test_cmd + test_call # seg-faulted at least once on 'test_super_deep' (recursion related) + test_cmd # "Bad file descriptor" on 'test_basic_completion' test_ctypes # stupid test compares wording of error message. # test_compile # out of memory (with 2 GB of RAM) test_datetime # on rare ocassions, it passes. test_fcntl # "Permission denied" in test_lockf_exclusive - test_genericpath # os.path.getatime() should return an int. - test_glob # sometimes hangs. - test_importlib + test_functools # seg-faulted at least once on 'test_lru_recursion' + # test_genericpath # os.path.getatime() should return an int. + # test_glob # sometimes hangs. + test_importlib # "Invalid Argument" on _os.getcwd(). RAMFS or chroot related? + test_ioctl # B_ERROR on "fcntl.ioctl(wfd, termios.TCFLSH, termios.TCIFLUSH)" test_json # "AssertionError: 13 != -2147459059" (errno.EPIPE) - test_kqueue # hangs. + # test_kqueue # hangs (on nightlies only?). test_mailbox # fails to clean a temp file? (os.utime() related?) test_math # test expects to get -0.0, gets 0.0 test_os # named pipes related errors. set_get_priority, ttyname, and utime fails. test_popen # sign error numbers in waitstatus_to_exitcode()... "AssertionError: -42 != 42" test_posix # test_posix_fallocate and test_link_dir_fd. Operation not supported. - test_pty # sometimes fails. + # test_pty # sometimes fails. test_pyrepl # several: "module 'termios' has no attribute 'VREPRINT'". Adding hasattr(termios, 'VREPRINT') still results in error. test_re # locale related failures. - test_readline # hangs sometimes (when run in parallel with test_pty, I think). + # test_readline # hangs sometimes (when run in parallel with test_pty, I think). test_shutil # "Operation not supported" calling "os.scandir(topfd)". - test_signal # stupid test compares wording of strsignal(signal.SIGTERM). + # test_signal # stupid test compares wording of strsignal(signal.SIGTERM). test_strptime # locale related failures. test_subprocess # "Device/File/Resource busy" calling setrlimit() - test_sysconfig # venv related failures. + test_sysconfig # venv related failures. (ToDo, back-port patch from 3.14) test_tarfile # os.path.getmtime() should return an int. Also, path.stat().st_mtime and pathlib.Path(TEMPDIR).stat().st_mtime seems to be using different scales: 1723.215266 vs 1723215266.0319815 test_termios # tcdrain/tcflow/tcflush/tcsendbreak related failures. test_time # ctime/mktime related failures. test_tools # _strptime / "%z" related. - test_venv + test_venv # '/boot/system/cache/tmp/test_python_[...]/bin/python' can't find libpython3.13.so.1.0. ) # besides the above ones, the following only fail when the workdir is in RAMFS: @@ -446,12 +457,12 @@ TEST() fi if $runOnlyExcludedTests; then - make $jobArgs test EXTRATESTOPTS="${test_options[*]} ${tests_to_exclude[*]}" + make test EXTRATESTOPTS="${test_options[*]} ${tests_to_exclude[*]}" elif $runOnlyKnownFailingTests; then - make $jobArgs test EXTRATESTOPTS="${test_options[*]} ${tests_that_fail[*]}" + make test EXTRATESTOPTS="${test_options[*]} ${tests_that_fail[*]}" else # Runs the full test suite (minus the tests that we explicitly exclude). - make $jobArgs test EXTRATESTOPTS="${test_options[*]} ${tests_to_exclude[*]}" + make test EXTRATESTOPTS="${test_options[*]} ${tests_to_exclude[*]}" fi # Occasionally, some test fails seemingly due to the racy nature of tempfile.mktemp().