mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-22 03:30:05 +02:00
python3.12: update to version 3.12.6. (#11122)
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
From 91fcc766ffa94f609e0bcbdf440c6032e56f904e Mon Sep 17 00:00:00 2001
|
||||
From 94f044767b77d2e5436b85dd6c06e3f053ad9908 Mon Sep 17 00:00:00 2001
|
||||
From: Oscar Lesta <oscar.lesta@gmail.com>
|
||||
Date: Sun, 8 Oct 2023 01:02:25 -0300
|
||||
Subject: initial Haiku patch
|
||||
@@ -32,7 +32,7 @@ index 0000000..4372ee2
|
||||
+set -v
|
||||
+eval $PYTHON_FOR_BUILD ../../Tools/scripts/h2py.py -i "'(u_long)'" $HEADERS/posix/netinet/in.h
|
||||
diff --git a/Makefile.pre.in b/Makefile.pre.in
|
||||
index 4a957fb..2d5cbcc 100644
|
||||
index 0e64ccc..f3032c3 100644
|
||||
--- a/Makefile.pre.in
|
||||
+++ b/Makefile.pre.in
|
||||
@@ -147,7 +147,7 @@ BINDIR= @bindir@
|
||||
@@ -184,7 +184,7 @@ index 13f1115..45f477c 100644
|
||||
else
|
||||
PyErr_SetString(PyExc_KeyError, "getspnam(): name not found");
|
||||
diff --git a/configure.ac b/configure.ac
|
||||
index 8a32cb5..3e89457 100644
|
||||
index 0d6df8e..a85e431 100644
|
||||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -1524,6 +1524,16 @@ if test $enable_shared = "yes"; then
|
||||
@@ -242,7 +242,7 @@ index 8a32cb5..3e89457 100644
|
||||
2.45.2
|
||||
|
||||
|
||||
From b2cb235d39502638956efdbbf7fedbc81499f72d Mon Sep 17 00:00:00 2001
|
||||
From ad34f4d68d338d042490c7b455b689ac357c2d5d Mon Sep 17 00:00:00 2001
|
||||
From: Jerome Duval <jerome.duval@gmail.com>
|
||||
Date: Sun, 16 Apr 2017 10:05:42 +0200
|
||||
Subject: fix for negative errnos
|
||||
@@ -280,7 +280,7 @@ index 35ea2ac..ccc25ed 100644
|
||||
2.45.2
|
||||
|
||||
|
||||
From 5ddac642fb5e6f9c47b3fa055d6623b40d62520d Mon Sep 17 00:00:00 2001
|
||||
From 9e5fadd7fc838286ac17b319dd42d6ed66b5f2ea Mon Sep 17 00:00:00 2001
|
||||
From: Oscar Lesta <oscar.lesta@gmail.com>
|
||||
Date: Sun, 8 Oct 2023 20:06:31 -0300
|
||||
Subject: Implement CTypes's find_library for Haiku
|
||||
@@ -377,17 +377,17 @@ index c550883..6b23423 100644
|
||||
2.45.2
|
||||
|
||||
|
||||
From 07884d11a7e06ce5c648357e61e22f049ebc826c Mon Sep 17 00:00:00 2001
|
||||
From 49dd426f78da08ed6bceb39d706cf59155d65ec7 Mon Sep 17 00:00:00 2001
|
||||
From: Philipp Wolfer <phil@parolu.io>
|
||||
Date: Mon, 23 Sep 2019 09:14:58 +0200
|
||||
Subject: webbrowser: Support for default browsers on Haiku
|
||||
|
||||
|
||||
diff --git a/Lib/webbrowser.py b/Lib/webbrowser.py
|
||||
index ba6711e..ba543ab 100755
|
||||
index 13b9e85..7d81178 100755
|
||||
--- a/Lib/webbrowser.py
|
||||
+++ b/Lib/webbrowser.py
|
||||
@@ -477,6 +477,12 @@ def register_standard_browsers():
|
||||
@@ -480,6 +480,12 @@ def register_standard_browsers():
|
||||
# SerenityOS webbrowser, simply called "Browser".
|
||||
register("Browser", None, BackgroundBrowser("Browser"))
|
||||
|
||||
@@ -404,7 +404,7 @@ index ba6711e..ba543ab 100755
|
||||
2.45.2
|
||||
|
||||
|
||||
From db43569939664fbd43fc89da29481a6ca100b705 Mon Sep 17 00:00:00 2001
|
||||
From 188f515c46a4a0f581c24dc93ae890a323643a9d Mon Sep 17 00:00:00 2001
|
||||
From: Jerome Duval <jerome.duval@gmail.com>
|
||||
Date: Fri, 4 Oct 2019 22:02:35 +0200
|
||||
Subject: since 3.8, don't reinit locks on fork.
|
||||
@@ -427,7 +427,7 @@ index 22d3198..f369a88 100644
|
||||
2.45.2
|
||||
|
||||
|
||||
From 5e457b2ab1ec159f441fdb714e95ae4d1dce970f Mon Sep 17 00:00:00 2001
|
||||
From 40dd67671bc97d1d7c1204e2a46ce11e01cdd968 Mon Sep 17 00:00:00 2001
|
||||
From: Jerome Duval <jerome.duval@gmail.com>
|
||||
Date: Fri, 15 May 2020 15:20:57 +0200
|
||||
Subject: handle errors returned by internal_connect()
|
||||
@@ -460,14 +460,14 @@ index 9724879..f714ed8 100644
|
||||
2.45.2
|
||||
|
||||
|
||||
From 662f057c3b9cf8f81d55ba4518c71a640b587a97 Mon Sep 17 00:00:00 2001
|
||||
From 1ca2d28caa2ecaefd88a19afc6155a89dcdeea21 Mon Sep 17 00:00:00 2001
|
||||
From: Jerome Duval <jerome.duval@gmail.com>
|
||||
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 9cc53c8..efe83f4 100644
|
||||
index 2277cae..365ce3f 100644
|
||||
--- a/Modules/posixmodule.c
|
||||
+++ b/Modules/posixmodule.c
|
||||
@@ -3249,11 +3249,14 @@ static PyObject *
|
||||
@@ -490,7 +490,7 @@ index 9cc53c8..efe83f4 100644
|
||||
2.45.2
|
||||
|
||||
|
||||
From bde99c8775e120a51ede13921aaa473699b6aa59 Mon Sep 17 00:00:00 2001
|
||||
From 84387b230b47b9f2fce0e395d3eeea43ad51fd14 Mon Sep 17 00:00:00 2001
|
||||
From: Oscar Lesta <oscar.lesta@gmail.com>
|
||||
Date: Mon, 24 Oct 2022 20:04:10 -0300
|
||||
Subject: Lib/test: require the "largefile" usage flag for I/O heavy tests.
|
||||
@@ -501,7 +501,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 daa40a6..1a49ab2 100644
|
||||
index 8b68653..5aede8c 100644
|
||||
--- a/Lib/test/test_io.py
|
||||
+++ b/Lib/test/test_io.py
|
||||
@@ -634,7 +634,7 @@ class IOTest(unittest.TestCase):
|
||||
@@ -514,10 +514,10 @@ index daa40a6..1a49ab2 100644
|
||||
'largefile',
|
||||
'test requires %s bytes and a long time to run' % self.LARGE)
|
||||
diff --git a/Lib/test/test_largefile.py b/Lib/test/test_largefile.py
|
||||
index 3b0930f..c793ea1 100644
|
||||
index 282400c..6448a8d 100644
|
||||
--- a/Lib/test/test_largefile.py
|
||||
+++ b/Lib/test/test_largefile.py
|
||||
@@ -255,7 +255,7 @@ def setUpModule():
|
||||
@@ -274,7 +274,7 @@ def setUpModule():
|
||||
# takes a long time to build the >2 GiB file and takes >2 GiB of disk
|
||||
# space therefore the resource must be enabled to run this test.
|
||||
# If not, nothing after this line stanza will be executed.
|
||||
@@ -543,7 +543,7 @@ index 1867e8c..e4fab02 100644
|
||||
2.45.2
|
||||
|
||||
|
||||
From 27d9c9a14b97c392ba739b57176640f0520072b6 Mon Sep 17 00:00:00 2001
|
||||
From 6156deb2f3bc6b43cde398b9a6d10a3d49d6e357 Mon Sep 17 00:00:00 2001
|
||||
From: Oscar Lesta <oscar.lesta@gmail.com>
|
||||
Date: Fri, 26 Jul 2024 19:18:56 -0300
|
||||
Subject: _getuserbase(), getsitepackages(), and INSTALL_SCHEMES for Haiku.
|
||||
@@ -570,7 +570,7 @@ 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 924cfbe..5f3f5da 100644
|
||||
index 924cfbe..3863055 100644
|
||||
--- a/Lib/site.py
|
||||
+++ b/Lib/site.py
|
||||
@@ -302,6 +302,14 @@ def _getuserbase():
|
||||
@@ -610,7 +610,7 @@ index 924cfbe..5f3f5da 100644
|
||||
+ _home_prefix = subprocess.check_output(
|
||||
+ ['finddir', 'B_USER_CONFIG_DIRECTORY']).rstrip().decode('utf-8')
|
||||
+ except:
|
||||
+ print("'finddir B_USER_CONFIG_DIRECTORY' failed.")
|
||||
+ # print("'finddir B_USER_CONFIG_DIRECTORY' failed.")
|
||||
+ _home_prefix = None
|
||||
+
|
||||
+ if _home_prefix is not None:
|
||||
@@ -622,7 +622,7 @@ index 924cfbe..5f3f5da 100644
|
||||
if sys.platlibdir != "lib":
|
||||
libdirs.append("lib")
|
||||
diff --git a/Lib/sysconfig.py b/Lib/sysconfig.py
|
||||
index 122d441..f491415 100644
|
||||
index 122d441..55e13c4 100644
|
||||
--- a/Lib/sysconfig.py
|
||||
+++ b/Lib/sysconfig.py
|
||||
@@ -47,6 +47,36 @@ _INSTALL_SCHEMES = {
|
||||
@@ -759,7 +759,7 @@ index 1137c20..575e4e5 100644
|
||||
2.45.2
|
||||
|
||||
|
||||
From c3aa3d84811cc4d9a6e6803ec1cb767ad4b237cf Mon Sep 17 00:00:00 2001
|
||||
From d90396e18308b22a1a47a91296731a8ea1bacac1 Mon Sep 17 00:00:00 2001
|
||||
From: Oscar Lesta <oscar.lesta@gmail.com>
|
||||
Date: Fri, 26 Jul 2024 19:01:05 -0300
|
||||
Subject: Fix location of REPL's history file.
|
||||
@@ -770,7 +770,7 @@ Content-Transfer-Encoding: 8bit
|
||||
From "initial Haiku patch" by Jérôme Duval.
|
||||
|
||||
diff --git a/Lib/site.py b/Lib/site.py
|
||||
index 5f3f5da..6dea062 100644
|
||||
index 3863055..da608bd 100644
|
||||
--- a/Lib/site.py
|
||||
+++ b/Lib/site.py
|
||||
@@ -518,8 +518,16 @@ def enablerlcompleter():
|
||||
@@ -796,7 +796,7 @@ index 5f3f5da..6dea062 100644
|
||||
2.45.2
|
||||
|
||||
|
||||
From c3abf4b23c9810536c3c02bade51284173049133 Mon Sep 17 00:00:00 2001
|
||||
From 38533600230ef9bec7d8a99f0760665a2f690ff2 Mon Sep 17 00:00:00 2001
|
||||
From: Oscar Lesta <oscar.lesta@gmail.com>
|
||||
Date: Sun, 8 Oct 2023 17:02:19 -0300
|
||||
Subject: Use spawn instead of fork for multiprocessing.
|
||||
@@ -849,7 +849,7 @@ index de8a264..02a301e 100644
|
||||
2.45.2
|
||||
|
||||
|
||||
From 700d8924d4ec7b7d9a5d4b0c6a18903e7c12b6c2 Mon Sep 17 00:00:00 2001
|
||||
From e1b37fe32fcf2b17dafec1efd5dfe860c46d373b Mon Sep 17 00:00:00 2001
|
||||
From: Oscar Lesta <oscar.lesta@gmail.com>
|
||||
Date: Sun, 10 Dec 2023 19:50:22 -0300
|
||||
Subject: Miscellaneous "Lib/test/" fixes for Haiku.
|
||||
@@ -860,10 +860,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 404894a..9fee3f7 100644
|
||||
index 0528e07..0885bc6 100644
|
||||
--- a/Lib/test/datetimetester.py
|
||||
+++ b/Lib/test/datetimetester.py
|
||||
@@ -5921,6 +5921,9 @@ def pairs(iterable):
|
||||
@@ -5926,6 +5926,9 @@ def pairs(iterable):
|
||||
|
||||
class ZoneInfo(tzinfo):
|
||||
zoneroot = '/usr/share/zoneinfo'
|
||||
@@ -889,7 +889,7 @@ index ebfcffd..0517b87 100644
|
||||
2.45.2
|
||||
|
||||
|
||||
From 4cafbc8ddd4c7c4f982bdba23991328a96964d5d Mon Sep 17 00:00:00 2001
|
||||
From c1134b6f49f4a0c53be2a0334ca24b8db5c5e6bd Mon Sep 17 00:00:00 2001
|
||||
From: Oscar Lesta <oscar.lesta@gmail.com>
|
||||
Date: Sat, 10 Feb 2024 06:01:25 -0300
|
||||
Subject: Fix build on nightlies, following the addition of kqueue.
|
||||
@@ -897,7 +897,7 @@ Subject: Fix build on nightlies, following the addition of kqueue.
|
||||
See HaikuPorts issue #10001.
|
||||
|
||||
diff --git a/Modules/selectmodule.c b/Modules/selectmodule.c
|
||||
index 97f1db2..17bc54c 100644
|
||||
index 50788e5..82fd9d9 100644
|
||||
--- a/Modules/selectmodule.c
|
||||
+++ b/Modules/selectmodule.c
|
||||
@@ -2722,13 +2722,20 @@ _select_exec(PyObject *m)
|
||||
@@ -955,7 +955,7 @@ index 97f1db2..17bc54c 100644
|
||||
2.45.2
|
||||
|
||||
|
||||
From 8d881ebce1d3948d0d9b1b64cf92c01ced88aea8 Mon Sep 17 00:00:00 2001
|
||||
From 76dd51e3429bdb55f0daeccb9a9945903aa4d0a2 Mon Sep 17 00:00:00 2001
|
||||
From: Alexander von Gluck IV <kallisti5@unixzen.com>
|
||||
Date: Thu, 14 Mar 2024 12:54:33 -0500
|
||||
Subject: config.guess: Update to universal haiku arch guessing
|
||||
@@ -984,3 +984,185 @@ index e81d3ae..366429c 100755
|
||||
--
|
||||
2.45.2
|
||||
|
||||
|
||||
From 0fdc0ab08ce964d27122139a9621dd5441fdb074 Mon Sep 17 00:00:00 2001
|
||||
From: Oscar Lesta <oscar.lesta@gmail.com>
|
||||
Date: Fri, 9 Aug 2024 13:38:28 -0300
|
||||
Subject: fix test_utf8_mode.
|
||||
|
||||
|
||||
diff --git a/Lib/test/test_utf8_mode.py b/Lib/test/test_utf8_mode.py
|
||||
index f668810..a55a8e4 100644
|
||||
--- a/Lib/test/test_utf8_mode.py
|
||||
+++ b/Lib/test/test_utf8_mode.py
|
||||
@@ -226,7 +226,7 @@ class UTF8ModeTests(unittest.TestCase):
|
||||
with self.subTest(LC_ALL=loc):
|
||||
check('utf8', [arg_utf8], LC_ALL=loc)
|
||||
|
||||
- if sys.platform == 'darwin' or support.is_android or VXWORKS:
|
||||
+ if sys.platform == 'darwin' or support.is_android or VXWORKS or sys.platform[:5] == 'haiku':
|
||||
c_arg = arg_utf8
|
||||
elif sys.platform.startswith("aix"):
|
||||
c_arg = arg.decode('iso-8859-1')
|
||||
--
|
||||
2.45.2
|
||||
|
||||
|
||||
From a928a72ce3a70d3c0babd0f922809bdeb821fbd0 Mon Sep 17 00:00:00 2001
|
||||
From: Oscar Lesta <oscar.lesta@gmail.com>
|
||||
Date: Fri, 9 Aug 2024 14:35:04 -0300
|
||||
Subject: Fix test_site.
|
||||
|
||||
test_site expects a specific set of modules to be imported.
|
||||
By importing "subprocess" (for calling `finddir`) we end up breaking
|
||||
that assumption.
|
||||
|
||||
Also, site.py should avoid costly imports to help startup times.
|
||||
|
||||
Hardcoding a few paths avoids having to import subprocess, that
|
||||
causes many other subsequent imports.
|
||||
|
||||
diff --git a/Lib/site.py b/Lib/site.py
|
||||
index da608bd..d11f972 100644
|
||||
--- a/Lib/site.py
|
||||
+++ b/Lib/site.py
|
||||
@@ -303,12 +303,8 @@ def _getuserbase():
|
||||
"%d.%d" % sys.version_info[:2])
|
||||
|
||||
if sys.platform.startswith('haiku'):
|
||||
- try:
|
||||
- import subprocess
|
||||
- return subprocess.check_output(
|
||||
- ['finddir', 'B_USER_NONPACKAGED_DIRECTORY']).rstrip().decode('utf-8')
|
||||
- except:
|
||||
- pass
|
||||
+ # 'B_USER_NONPACKAGED_DIRECTORY'
|
||||
+ return joinuser("~", "config", "non-packaged")
|
||||
|
||||
return joinuser("~", ".local")
|
||||
|
||||
@@ -402,16 +398,8 @@ 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.
|
||||
- try:
|
||||
- import subprocess
|
||||
- _home_prefix = subprocess.check_output(
|
||||
- ['finddir', 'B_USER_CONFIG_DIRECTORY']).rstrip().decode('utf-8')
|
||||
- except:
|
||||
- # print("'finddir B_USER_CONFIG_DIRECTORY' failed.")
|
||||
- _home_prefix = None
|
||||
-
|
||||
- if _home_prefix is not None:
|
||||
- sitepackages.append(os.path.join(_home_prefix, "lib",
|
||||
+ _home_prefix = os.path.expanduser(os.path.join("~", "config"))
|
||||
+ sitepackages.append(os.path.join(_home_prefix, "lib",
|
||||
"python%d.%d" % sys.version_info[:2],
|
||||
"vendor-packages"))
|
||||
elif os.sep == '/':
|
||||
diff --git a/Lib/test/test_site.py b/Lib/test/test_site.py
|
||||
index 1a9c81d..09e612f 100644
|
||||
--- a/Lib/test/test_site.py
|
||||
+++ b/Lib/test/test_site.py
|
||||
@@ -322,7 +322,21 @@ class HelperFunctionsTests(unittest.TestCase):
|
||||
def test_getsitepackages(self):
|
||||
site.PREFIXES = ['xoxo']
|
||||
dirs = site.getsitepackages()
|
||||
- if os.sep == '/':
|
||||
+ if sys.platform[:5] == 'haiku':
|
||||
+ self.assertEqual(len(dirs), 3) # site-packages + sys/user vendor-packages
|
||||
+ wanted = os.path.join('xoxo', 'non-packaged', 'lib',
|
||||
+ 'python%d.%d' % sys.version_info[:2],
|
||||
+ 'site-packages')
|
||||
+ self.assertEqual(dirs[0], wanted)
|
||||
+ wanted = os.path.join('xoxo', sys.platlibdir,
|
||||
+ 'python%d.%d' % sys.version_info[:2],
|
||||
+ 'vendor-packages')
|
||||
+ self.assertEqual(dirs[1], wanted)
|
||||
+ wanted = os.path.join('xoxo', os.path.expanduser('~/config'), 'lib',
|
||||
+ 'python%d.%d' % sys.version_info[:2],
|
||||
+ 'vendor-packages')
|
||||
+ self.assertEqual(dirs[2], wanted)
|
||||
+ elif os.sep == '/':
|
||||
# OS X, Linux, FreeBSD, etc
|
||||
if sys.platlibdir != "lib":
|
||||
self.assertEqual(len(dirs), 2)
|
||||
--
|
||||
2.45.2
|
||||
|
||||
|
||||
From 10db21f1709a4155d9737f7dac526e542e4537be Mon Sep 17 00:00:00 2001
|
||||
From: Oscar Lesta <oscar.lesta@gmail.com>
|
||||
Date: Fri, 9 Aug 2024 15:37:13 -0300
|
||||
Subject: Fix test_sysconfig.
|
||||
|
||||
|
||||
diff --git a/Lib/test/test_sysconfig.py b/Lib/test/test_sysconfig.py
|
||||
index 575e4e5..18f73b3 100644
|
||||
--- a/Lib/test/test_sysconfig.py
|
||||
+++ b/Lib/test/test_sysconfig.py
|
||||
@@ -201,6 +201,19 @@ class TestSysConfig(unittest.TestCase):
|
||||
sysconfig.get_path('purelib', scheme='venv'),
|
||||
sysconfig.get_path('purelib', scheme='nt_venv')
|
||||
)
|
||||
+ elif sys.platform[:5] == 'haiku':
|
||||
+ self.assertEqual(
|
||||
+ sysconfig.get_path('scripts', scheme='venv'),
|
||||
+ sysconfig.get_path('scripts', scheme='haiku_venv')
|
||||
+ )
|
||||
+ self.assertEqual(
|
||||
+ sysconfig.get_path('include', scheme='venv'),
|
||||
+ sysconfig.get_path('include', scheme='haiku_venv')
|
||||
+ )
|
||||
+ self.assertEqual(
|
||||
+ sysconfig.get_path('purelib', scheme='venv'),
|
||||
+ sysconfig.get_path('purelib', scheme='haiku_venv')
|
||||
+ )
|
||||
else:
|
||||
self.assertEqual(
|
||||
sysconfig.get_path('scripts', scheme='venv'),
|
||||
@@ -345,7 +358,7 @@ class TestSysConfig(unittest.TestCase):
|
||||
|
||||
def test_get_scheme_names(self):
|
||||
wanted = ['nt', 'posix_home', 'posix_prefix', 'posix_venv', 'nt_venv', 'venv', 'haiku',
|
||||
- 'haiku_home', 'haiku_vendor']
|
||||
+ 'haiku_home', 'haiku_vendor', 'haiku_venv']
|
||||
if HAS_USER_BASE:
|
||||
wanted.extend(['nt_user', 'osx_framework_user', 'posix_user', 'haiku_user'])
|
||||
self.assertEqual(get_scheme_names(), tuple(sorted(wanted)))
|
||||
--
|
||||
2.45.2
|
||||
|
||||
|
||||
From 9a3687667dd0e5ffd65a072b7652356b8a112bf2 Mon Sep 17 00:00:00 2001
|
||||
From: Oscar Lesta <oscar.lesta@gmail.com>
|
||||
Date: Fri, 9 Aug 2024 15:45:45 -0300
|
||||
Subject: Fix test_compileall by skipping tests that need hardlink support.
|
||||
|
||||
Just a quick fix. Python 3.13 has "@os_helper.skip_unless_hardlink"
|
||||
which reads better (albeit we need to patch a bit too).
|
||||
|
||||
diff --git a/Lib/test/test_compileall.py b/Lib/test/test_compileall.py
|
||||
index 5832f84..2e736db 100644
|
||||
--- a/Lib/test/test_compileall.py
|
||||
+++ b/Lib/test/test_compileall.py
|
||||
@@ -921,6 +921,7 @@ class CommandLineTestsBase:
|
||||
# only for more than one optimization level
|
||||
self.assertRunNotOK(self.directory, "-o 1", "--hardlink-dupes")
|
||||
|
||||
+ @unittest.skipUnless(sys.platform[:5] != 'haiku', 'requires hardlink support')
|
||||
def test_hardlink(self):
|
||||
# 'a = 0' code produces the same bytecode for the 3 optimization
|
||||
# levels. All three .pyc files must have the same inode (hardlinks).
|
||||
@@ -958,7 +959,7 @@ class CommandLineTestsNoSourceEpoch(CommandLineTestsBase,
|
||||
|
||||
|
||||
|
||||
-@unittest.skipUnless(hasattr(os, 'link'), 'requires os.link')
|
||||
+@unittest.skipUnless(hasattr(os, 'link') and sys.platform[:5] != 'haiku', 'requires os.link')
|
||||
class HardlinkDedupTestsBase:
|
||||
# Test hardlink_dupes parameter of compileall.compile_dir()
|
||||
|
||||
--
|
||||
2.45.2
|
||||
|
||||
Reference in New Issue
Block a user