forked from pool/python314
- Tests
- gh-132815: Fix test__opcode: add JUMP_BACKWARD to
specialization stats.
- gh-135489: Show verbose output for failing tests during PGO
profiling step with –enable-optimizations.
- gh-135120: Add test.support.subTests().
- Security
- gh-135462: Fix quadratic complexity in processing specially
crafted input in html.parser.HTMLParser. End-of-file errors
are now handled according to the HTML5 specs – comments and
declarations are automatically closed, tags are ignored.
- gh-135034: Fixes multiple issues that allowed tarfile
extraction filters (filter="data" and filter="tar") to be
bypassed using crafted symlinks and hard links.
Addresses CVE 2024-12718, CVE 2025-4138, CVE 2025-4330, and
CVE 2025-4517.
- Library
- gh-65697: configparser’s error message when attempting to
write an invalid key is now more helpful.
- gh-135497: Fix os.getlogin() failing for longer usernames
on BSD-based platforms.
- gh-135429: Fix the argument mismatch in _lsprof for
PY_THROW event.
- gh-135368: Fix unittest.mock.Mock generation on
dataclasses.dataclass() objects. Now all special attributes
are set as it was before gh-124429.
- gh-133967: Do not normalize locale name ‘C.UTF-8’ to
‘en_US.UTF-8’.
- gh-135321: Raise a correct exception for values greater
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:Factory/python314?expand=0&rev=73
35 lines
1.5 KiB
Diff
35 lines
1.5 KiB
Diff
---
|
|
Lib/test/test_compile.py | 5 +++++
|
|
1 file changed, 5 insertions(+)
|
|
|
|
Index: Python-3.14.0b3/Lib/test/test_compile.py
|
|
===================================================================
|
|
--- Python-3.14.0b3.orig/Lib/test/test_compile.py 2025-06-22 00:32:01.975698954 +0200
|
|
+++ Python-3.14.0b3/Lib/test/test_compile.py 2025-06-22 00:32:07.740981155 +0200
|
|
@@ -24,6 +24,9 @@
|
|
from test.support.bytecode_helper import instructions_with_positions
|
|
from test.support.os_helper import FakePath
|
|
|
|
+IS_SLE_15_6 = os.environ.get("SLE_VERSION", "") == "0150700"
|
|
+IS_32bit = hasattr(os, "uname") and os.uname().machine in ["i386", "i486", "i586", "i686"]
|
|
+
|
|
class TestSpecifics(unittest.TestCase):
|
|
|
|
def compile_single(self, source):
|
|
@@ -121,6 +124,7 @@ class TestSpecifics(unittest.TestCase):
|
|
self.assertEqual(d['z'], 12)
|
|
|
|
@unittest.skipIf(support.is_wasi, "exhausts limited stack on WASI")
|
|
+ @unittest.skipIf(IS_SLE_15_6 and IS_32bit, "fails on 15.6 i586")
|
|
@support.skip_emscripten_stack_overflow()
|
|
def test_extended_arg(self):
|
|
repeat = int(get_c_recursion_limit() * 0.9)
|
|
@@ -710,6 +714,7 @@ class TestSpecifics(unittest.TestCase):
|
|
|
|
@support.cpython_only
|
|
@unittest.skipIf(support.is_wasi, "exhausts limited stack on WASI")
|
|
+ @unittest.skipIf(IS_SLE_15_6 and IS_32bit, "fails on 15.6 i586")
|
|
@support.skip_emscripten_stack_overflow()
|
|
def test_compiler_recursion_limit(self):
|
|
# Expected limit is Py_C_RECURSION_LIMIT
|