8000 gh-103092: Test `_ctypes` type hierarchy and features by aisk · Pull Request #113727 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-103092: Test _ctypes type hierarchy and features #113727

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 16 commits into from
Jan 9, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
rename support.py to _support.py to avoid ambiguous when import
  • Loading branch information
aisk committed Jan 9, 2024
commit 3ccb9648c02ea7daa1fbebd58a04097b6a5ab42f
File renamed without changes.
2 changes: 1 addition & 1 deletion Lib/test/test_ctypes/test_arrays.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
c_char, c_wchar, c_byte, c_ubyte, c_short, c_ushort, c_int, c_uint,
c_long, c_ulonglong, c_float, c_double, c_longdouble)
from test.support import bigmemtest, _2G
from .support import (_CData, PyCArrayType, Py_TPFLAGS_DISALLOW_INSTANTIATION,
from ._support import (_CData, PyCArrayType, Py_TPFLAGS_DISALLOW_INSTANTIATION,
Py_TPFLAGS_IMMUTABLETYPE)


Expand Down
2 changes: 1 addition & 1 deletion Lib/test/test_ctypes/test_funcptr.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import unittest
from ctypes import (CDLL, Structure, CFUNCTYPE, sizeof, _CFuncPtr,
c_void_p, c_char_p, c_char, c_int, c_uint, c_long)
from .support import (_CData, PyCFuncPtrType, Py_TPFLAGS_DISALLOW_INSTANTIATION,
from ._support import (_CData, PyCFuncPtrType, Py_TPFLAGS_DISALLOW_INSTANTIATION,
Py_TPFLAGS_IMMUTABLETYPE)


Expand Down
2 changes: 1 addition & 1 deletion Lib/test/test_ctypes/test_pointers.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
c_byte, c_ubyte, c_short, c_ushort, c_int, c_uint,
c_long, c_ulong, c_longlong, c_ulonglong,
c_float, c_double)
from .support import (_CData, PyCPointerType, Py_TPFLAGS_DISALLOW_INSTANTIATION,
from ._support import (_CData, PyCPointerType, Py_TPFLAGS_DISALLOW_INSTANTIATION,
Py_TPFLAGS_IMMUTABLETYPE)


Expand Down
2 changes: 1 addition & 1 deletion Lib/test/test_ctypes/test_simplesubclasses.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import unittest
from ctypes import Structure, CFUNCTYPE, c_int, _SimpleCData
from .support import (_CData, PyCSimpleType, Py_TPFLAGS_DISALLOW_INSTANTIATION,
from ._support import (_CData, PyCSimpleType, Py_TPFLAGS_DISALLOW_INSTANTIATION,
Py_TPFLAGS_IMMUTABLETYPE)


Expand Down
2 changes: 1 addition & 1 deletion Lib/test/test_ctypes/test_struct_fields.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import unittest
from ctypes import Structure, Union, sizeof, c_char, c_int
from .support import (CField, Py_TPFLAGS_DISALLOW_INSTANTIATION,
from ._support import (CField, Py_TPFLAGS_DISALLOW_INSTANTIATION,
Py_TPFLAGS_IMMUTABLETYPE)


Expand Down
2 changes: 1 addition & 1 deletion Lib/test/test_ctypes/test_structures.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
from struct import calcsize
from collections import namedtuple
from test import support
from .support import (_CData, PyCStructType, Py_TPFLAGS_DISALLOW_INSTANTIATION,
from ._support import (_CData, PyCStructType, Py_TPFLAGS_DISALLOW_INSTANTIATION,
Py_TPFLAGS_IMMUTABLETYPE)


Expand Down
2 changes: 1 addition & 1 deletion Lib/test/test_ctypes/test_unions.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import unittest
from ctypes import Union
from .support import (_CData, UnionType, Py_TPFLAGS_DISALLOW_INSTANTIATION,
from ._support import (_CData, UnionType, Py_TPFLAGS_DISALLOW_INSTANTIATION,
Py_TPFLAGS_IMMUTABLETYPE)


Expand Down
2 changes: 1 addition & 1 deletion Lib/test/test_ctypes/test_win32.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
_pointer_type_cache,
c_void_p, c_char, c_int, c_long)
from test import support
from .support import Py_TPFLAGS_DISALLOW_INSTANTIATION, Py_TPFLAGS_IMMUTABLETYPE
from ._support import Py_TPFLAGS_DISALLOW_INSTANTIATION, Py_TPFLAGS_IMMUTABLETYPE


@unittest.skipUnless(sys.platform == "win32", 'Windows-specific test')
Expand Down
0