Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion Lib/test/test_ctypes/test_as_parameter.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
c_short, c_int, c_long, c_longlong,
c_byte, c_wchar, c_float, c_double,
ArgumentError)
from test.support import import_helper, skip_if_sanitizer
from test.support import import_helper, skip_if_sanitizer, skip_emscripten_stack_overflow
_ctypes_test = import_helper.import_module("_ctypes_test")


Expand Down Expand Up @@ -193,6 +193,7 @@ class S8I(Structure):
(9*2, 8*3, 7*4, 6*5, 5*6, 4*7, 3*8, 2*9))

@skip_if_sanitizer('requires deep stack', thread=True)
@skip_emscripten_stack_overflow()
def test_recursive_as_param(self):
class A:
pass
Expand Down
9 changes: 9 additions & 0 deletions Lib/test/test_ctypes/test_structures.py
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,15 @@ class X(Structure):
def _test_issue18060(self, Vector):
# Regression tests for gh-62260

# This test passes a struct of two doubles by value to the atan2(),
# whose actual C signature is atan2(double, double), so it only works on
# platforms where the abi of a function that takes a struct with two
# doubles matches the abi of a function that takes two doubles. The
# wasm32 ABI does not satisfy this condition and the test breaks.
if support.is_wasm32:
self.skipTest(
"wasm ABI is incompatible with test expectations")

# The call to atan2() should succeed if the
# class fields were correctly cloned in the
# subclasses. Otherwise, it will segfault.
Expand Down
2 changes: 1 addition & 1 deletion Platforms/emscripten/config.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Any data that can vary between Python versions is to be kept in this file.
# This allows for blanket copying of the Emscripten build code between supported
# Python versions.
emscripten-version = "4.0.19"
emscripten-version = "6.0.0"
node-version = "24"
test-args = [
"-m", "test",
Expand Down
Loading