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
Boxiang Sun
cython
Commits
81990780
Commit
81990780
authored
Aug 15, 2012
by
Robert Bradshaw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
One more char test fix.
parent
4da4a98a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
tests/memoryview/memslice.pyx
tests/memoryview/memslice.pyx
+2
-2
No files found.
tests/memoryview/memslice.pyx
View file @
81990780
...
@@ -1695,7 +1695,7 @@ cdef struct TestAttrs:
...
@@ -1695,7 +1695,7 @@ cdef struct TestAttrs:
def
test_struct_attributes_format
():
def
test_struct_attributes_format
():
"""
"""
>>> test_struct_attributes_format()
>>> test_struct_attributes_format()
T{i:int_attrib:
b
:char_attrib:}
T{i:int_attrib:
c
:char_attrib:}
"""
"""
cdef
TestAttrs
[
10
]
array
cdef
TestAttrs
[
10
]
array
cdef
TestAttrs
[:]
struct_memview
=
array
cdef
TestAttrs
[:]
struct_memview
=
array
...
@@ -1703,7 +1703,7 @@ def test_struct_attributes_format():
...
@@ -1703,7 +1703,7 @@ def test_struct_attributes_format():
if
sys
.
version_info
[:
2
]
>=
(
2
,
7
):
if
sys
.
version_info
[:
2
]
>=
(
2
,
7
):
print
builtins
.
memoryview
(
struct_memview
).
format
print
builtins
.
memoryview
(
struct_memview
).
format
else
:
else
:
print
"T{i:int_attrib:
b
:char_attrib:}"
print
"T{i:int_attrib:
c
:char_attrib:}"
# Test padding at the end of structs in the buffer support
# Test padding at the end of structs in the buffer support
...
...
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