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
b0d26335
Commit
b0d26335
authored
Aug 25, 2007
by
Neal Norwitz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use unicode strings
parent
f308132c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
Modules/_testcapimodule.c
Modules/_testcapimodule.c
+3
-3
No files found.
Modules/_testcapimodule.c
View file @
b0d26335
...
...
@@ -673,7 +673,7 @@ test_thread_state(PyObject *self, PyObject *args)
}
#endif
/* Some tests of Py
String
_FromFormat(). This needs more tests. */
/* Some tests of Py
Unicode
_FromFormat(). This needs more tests. */
static
PyObject
*
test_string_from_format
(
PyObject
*
self
,
PyObject
*
args
)
{
...
...
@@ -681,10 +681,10 @@ test_string_from_format(PyObject *self, PyObject *args)
char
*
msg
;
#define CHECK_1_FORMAT(FORMAT, TYPE) \
result = Py
String
_FromFormat(FORMAT, (TYPE)1); \
result = Py
Unicode
_FromFormat(FORMAT, (TYPE)1); \
if (result == NULL) \
return NULL; \
if (strcmp(Py
String
_AsString(result), "1")) { \
if (strcmp(Py
Unicode
_AsString(result), "1")) { \
msg = FORMAT " failed at 1"; \
goto Fail; \
} \
...
...
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