Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cython
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cython
Commits
65d083d1
Commit
65d083d1
authored
May 21, 2020
by
smutch
Committed by
Stefan Behnel
May 20, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use platform dependent test for "unpacked_struct_with_arrays" (GH-3621)
parent
4ca10b5f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
tests/buffers/buffmt.pyx
tests/buffers/buffmt.pyx
+5
-1
No files found.
tests/buffers/buffmt.pyx
View file @
65d083d1
from
__future__
import
unicode_literals
import
struct
# Tests buffer format string parsing.
...
...
@@ -442,7 +443,10 @@ def packed_struct_with_arrays(fmt):
@
testcase
def
unpacked_struct_with_arrays
(
fmt
):
"""
>>> unpacked_struct_with_arrays("T{i:a:(8)f:b:f:c:Q:d:(5)i:e:i:f:i:g:xxxx(4)d:h:i:i:}")
>>> if struct.calcsize('P') == 8: # 64 bit
... unpacked_struct_with_arrays("T{i:a:(8)f:b:f:c:Q:d:(5)i:e:i:f:i:g:xxxx(4)d:h:i:i:}")
... elif struct.calcsize('P') == 4: # 32 bit
... unpacked_struct_with_arrays("T{i:a:(8)f:b:f:c:Q:d:(5)i:e:i:f:i:g:(4)d:h:i:i:}")
"""
cdef
object
[
UnpackedStructWithArrays
]
buf
=
MockBuffer
(
...
...
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