Skip to content

Commit 16bfb44

Browse files
Merge pull request #2 from Melissa0x1f992/use-bitsize-param
Use bitsize param
2 parents d2954cd + d8a6f08 commit 16bfb44

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,12 @@ repos:
2929
- id: black
3030
name: Run Black on Tools/build/check_warnings.py
3131
files: ^Tools/build/check_warnings.py
32-
language_version: python3.12
32+
language_version: python3
3333
args: [--line-length=79]
3434
- id: black
3535
name: Run Black on Tools/jit/
3636
files: ^Tools/jit/
37-
language_version: python3.12
37+
language_version: python3
3838

3939
- repo: https://github.com/pre-commit/pre-commit-hooks
4040
rev: v5.0.0

Lib/test/test_ctypes/test_struct_fields.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,12 @@ def __init_subclass__(cls, **kwargs):
7575
'ctypes state is not initialized'):
7676
class Subclass(BrokenStructure): ...
7777

78+
def test_gh126937(self):
79+
class X(self.cls):
80+
_fields_ = [('char', c_char),]
81+
class Y(self.cls):
82+
_fields_ = [('largeField', X * (2 ** 32))]
83+
7884
# __set__ and __get__ should raise a TypeError in case their self
7985
# argument is not a ctype instance.
8086
def test___set__(self):

0 commit comments

Comments
 (0)