Skip to content

Commit b4eac76

Browse files
committed
Use skipIf decorator
1 parent 4fb91c5 commit b4eac76

1 file changed

Lines changed: 6 additions & 8 deletions

File tree

Lib/test/test_ctypes/test_structures.py

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -299,17 +299,15 @@ class X(Structure):
299299
self.assertEqual(s.first, got.first)
300300
self.assertEqual(s.second, got.second)
301301

302+
@unittest.skipIf(support.is_wasm32, "wasm ABI is incompatible with test expectations")
302303
def _test_issue18060(self, Vector):
303304
# Regression tests for gh-62260
304305

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

314312
# The call to atan2() should succeed if the
315313
# class fields were correctly cloned in the

0 commit comments

Comments
 (0)