Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
57dc7d5a
Commit
57dc7d5a
authored
Sep 25, 2019
by
Vinay Sajip
Committed by
GitHub
Sep 25, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bpo-22273: Disabled tests while investigating buildbot failures on ARM7L/PPC64. (GH-16377)
parent
f163aeaa
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
Lib/ctypes/test/test_structures.py
Lib/ctypes/test/test_structures.py
+5
-0
Modules/_ctypes/stgdict.c
Modules/_ctypes/stgdict.c
+1
-1
No files found.
Lib/ctypes/test/test_structures.py
View file @
57dc7d5a
import
platform
import
unittest
from
ctypes
import
*
from
ctypes.test
import
need_symbol
...
...
@@ -5,6 +6,8 @@ from struct import calcsize
import
_ctypes_test
from
test
import
support
MACHINE
=
platform
.
machine
()
class
SubclassesTest
(
unittest
.
TestCase
):
def
test_subclass
(
self
):
class
X
(
Structure
):
...
...
@@ -477,6 +480,8 @@ class StructureTestCase(unittest.TestCase):
self
.
assertEqual
(
s
.
first
,
got
.
first
)
self
.
assertEqual
(
s
.
second
,
got
.
second
)
@
unittest
.
skipIf
(
MACHINE
in
(
'armv7l'
,
'ppc64'
),
'Test temporarily disabled on this architecture'
)
def
test_array_in_struct
(
self
):
# See bpo-22273
...
...
Modules/_ctypes/stgdict.c
View file @
57dc7d5a
...
...
@@ -652,7 +652,7 @@ PyCStructUnionType_update_stgdict(PyObject *type, PyObject *fields, int isStruct
#define MAX_ELEMENTS 16
if
(
arrays_seen
&&
(
size
<=
16
))
{
if
(
arrays_seen
&&
(
size
<=
MAX_ELEMENTS
))
{
/*
* See bpo-22273. Arrays are normally treated as pointers, which is
* fine when an array name is being passed as parameter, but not when
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment