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
698845eb
Commit
698845eb
authored
Mar 02, 2017
by
orenmn
Committed by
INADA Naoki
Mar 02, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix an error message and a comment in _testcapimodule.c (GH-392)
parent
b2a7c2f9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
Modules/_testcapimodule.c
Modules/_testcapimodule.c
+3
-2
No files found.
Modules/_testcapimodule.c
View file @
698845eb
...
...
@@ -1167,7 +1167,7 @@ getargs_K(PyObject *self, PyObject *args)
}
/* This function not only tests the 'k' getargs code, but also the
PyLong_AsUnsignedLongMask()
and PyLong_AsUnsignedLongMask() functions
. */
PyLong_AsUnsignedLongMask()
function
. */
static
PyObject
*
test_k_code
(
PyObject
*
self
)
{
...
...
@@ -1205,7 +1205,8 @@ test_k_code(PyObject *self)
value
=
PyLong_AsUnsignedLongMask
(
num
);
if
(
value
!=
(
unsigned
long
)
-
0x42
)
return
raiseTestError
(
"test_k_code"
,
"PyLong_AsUnsignedLongMask() returned wrong value for long 0xFFF...FFF"
);
"PyLong_AsUnsignedLongMask() returned wrong "
"value for long -0xFFF..000042"
);
PyTuple_SET_ITEM
(
tuple
,
0
,
num
);
...
...
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