Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Merged
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
5 changes: 4 additions & 1 deletion 5 Lib/ctypes/test/test_structures.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
from ctypes import *
from ctypes.test import need_symbol
from struct import calcsize
import _testcapi
import _ctypes_test
import test.support

class SubclassesTest(unittest.TestCase):
def test_subclass(self):
Expand Down Expand Up @@ -202,7 +202,10 @@ class X(Structure):
"_pack_": -1}
self.assertRaises(ValueError, type(Structure), "X", (Structure,), d)

@test.support.cpython_only
def test_packed_c_limits(self):
# Issue 15989
import _testcapi
d = {"_fields_": [("a", c_byte)],
"_pack_": _testcapi.INT_MAX + 1}
self.assertRaises(ValueError, type(Structure), "X", (Structure,), d)
Expand Down
1 change: 1 addition & 0 deletions 1 Lib/test/test_atexit.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ def test_bound_methods(self):
self.assertEqual(l, [5])


@support.cpython_only
class SubinterpreterTest(unittest.TestCase):

def test_callbacks_leak(self):
Expand Down
1 change: 1 addition & 0 deletions 1 Lib/test/test_coroutines.py
Original file line number Diff line number Diff line change
Expand Up @@ -1772,6 +1772,7 @@ def wrap(gen):
sys.set_coroutine_wrapper(None)


@support.cpython_only
class CAPITest(unittest.TestCase):

def test_tp_await_1(self):
Expand Down
1 change: 1 addition & 0 deletions 1 Lib/test/test_socket.py
Original file line number Diff line number Diff line change
Expand Up @@ -876,6 +876,7 @@ def testNtoH(self):
self.assertEqual(swapped & mask, mask)
self.assertRaises(OverflowError, func, 1<<34)

@support.cpython_only
def testNtoHErrors(self):
good_values = [ 1, 2, 3, 1, 2, 3 ]
bad_values = [ -1, -2, -3, -1, -2, -3 ]
Expand Down
1 change: 1 addition & 0 deletions 1 Lib/test/test_tracemalloc.py
Original file line number Diff line number Diff line change
Expand Up @@ -809,6 +809,7 @@ def test_sys_xoptions_invalid(self):
b'number of frames',
stderr)

@support.cpython_only
def test_pymem_alloc0(self):
# Issue #21639: Check that PyMem_Malloc(0) with tracemalloc enabled
# does not crash.
Expand Down
Morty Proxy This is a proxified and sanitized view of the page, visit original site.