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

Commit 06e8a02

Browse filesBrowse files
skip more tests
1 parent 3793526 commit 06e8a02
Copy full SHA for 06e8a02

File tree

Expand file treeCollapse file tree

3 files changed

+7
-7
lines changed
Filter options
Expand file treeCollapse file tree

3 files changed

+7
-7
lines changed

‎Lib/test/test_ctypes/test_pickling.py

Copy file name to clipboardExpand all lines: Lib/test/test_ctypes/test_pickling.py
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
from ctypes import (CDLL, Structure, CFUNCTYPE, pointer,
44
c_void_p, c_char_p, c_wchar_p,
55
c_char, c_wchar, c_int, c_double)
6-
from test.support import import_helper
6+
from test.support import import_helper, thread_unsafe
77
_ctypes_test = import_helper.import_module("_ctypes_test")
88

99

@@ -21,7 +21,6 @@ def __init__(self, *args, **kw):
2121
class Y(X):
2222
_fields_ = [("str", c_char_p)]
2323

24-
2524
class PickleTest:
2625
def dumps(self, item):
2726
return pickle.dumps(item, self.proto)
@@ -39,6 +38,7 @@ def test_simple(self):
3938
self.assertEqual(memoryview(src).tobytes(),
4039
memoryview(dst).tobytes())
4140

41+
@thread_unsafe('not thread safe')
4242
def test_struct(self):
4343
X.init_called = 0
4444

‎Lib/test/test_ctypes/test_refcounts.py

Copy file name to clipboardExpand all lines: Lib/test/test_ctypes/test_refcounts.py
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import sys
44
import unittest
55
from test import support
6-
from test.support import import_helper
6+
from test.support import import_helper, thread_unsafe
77
from test.support import script_helper
88
_ctypes_test = import_helper.import_module("_ctypes_test")
99

@@ -13,7 +13,7 @@
1313

1414
dll = ctypes.CDLL(_ctypes_test.__file__)
1515

16-
16+
@thread_unsafe('not thread safe')
1717
class RefcountTestCase(unittest.TestCase):
1818
@support.refcount_test
1919
def test_1(self):
@@ -82,7 +82,7 @@ class X(ctypes.Structure):
8282
gc.collect()
8383
self.assertEqual(sys.getrefcount(func), orig_refcount)
8484

85-
85+
@thread_unsafe('not thread safe')
8686
class AnotherLeak(unittest.TestCase):
8787
def test_callback(self):
8888
proto = ctypes.CFUNCTYPE(ctypes.c_int, ctypes.c_int, ctypes.c_int)

‎Modules/_ctypes/_ctypes.c

Copy file name to clipboardExpand all lines: Modules/_ctypes/_ctypes.c
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2991,13 +2991,13 @@ PyCData_dealloc(PyObject *self)
29912991
}
29922992

29932993
static PyMemberDef PyCData_members[] = {
2994-
{ "_b_base_", _Py_T_OBJECT,
2994+
{ "_b_base_", Py_T_OBJECT,
29952995
offsetof(CDataObject, b_base), Py_READONLY,
29962996
"the base object" },
29972997
{ "_b_needsfree_", Py_T_INT,
29982998
offsetof(CDataObject, b_needsfree), Py_READONLY,
29992999
"whether the object owns the memory or not" },
3000-
{ "_objects", _Py_T_OBJECT,
3000+
{ "_objects", Py_T_OBJECT,
30013001
offsetof(CDataObject, b_objects), Py_READONLY,
30023002
"internal objects tree (NEVER CHANGE THIS OBJECT!)"},
30033003
{ NULL },

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.