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
49a62a9a
Commit
49a62a9a
authored
May 17, 2009
by
Dag Sverre Seljebotn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Py3 testcase fixes
parent
6e837884
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
tests/run/buffmt.pyx
tests/run/buffmt.pyx
+4
-2
No files found.
tests/run/buffmt.pyx
View file @
49a62a9a
from
__future__
import
unicode_literals
# Tests buffer format string parsing.
__test__
=
{}
...
...
@@ -39,7 +41,7 @@ cdef class MockBuffer:
cdef
object
itemsize
def
__init__
(
self
,
format
,
itemsize
):
self
.
format
=
format
self
.
format
=
unicode
(
format
).
encode
(
u"ASCII"
)
self
.
itemsize
=
itemsize
self
.
zero
=
0
self
.
minusone
=
-
1
...
...
@@ -232,7 +234,7 @@ def alignment_string(fmt, exc=None):
try
:
buf
=
MockBuffer
(
fmt
,
sizeof
(
int
))
except
ValueError
,
e
:
msg
=
e
.
message
.
replace
(
"Big"
,
"X"
).
replace
(
"Little"
,
"X"
).
replace
(
"big"
,
"X"
).
replace
(
"little"
,
"X"
)
msg
=
unicode
(
e
)
.
replace
(
"Big"
,
"X"
).
replace
(
"Little"
,
"X"
).
replace
(
"big"
,
"X"
).
replace
(
"little"
,
"X"
)
if
msg
!=
exc
:
print
msg
print
" is not equal to"
...
...
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