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
ed0b87d7
Commit
ed0b87d7
authored
Dec 19, 2013
by
Victor Stinner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix the C definition of the sys._debugmallocstats() function: the function has
no parameter
parent
36e96b87
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
Lib/test/test_sys.py
Lib/test/test_sys.py
+3
-0
Python/sysmodule.c
Python/sysmodule.c
+1
-1
No files found.
Lib/test/test_sys.py
View file @
ed0b87d7
...
...
@@ -665,6 +665,9 @@ class SysModuleTest(unittest.TestCase):
ret
,
out
,
err
=
assert_python_ok
(
*
args
)
self
.
assertIn
(
b"free PyDictObjects"
,
err
)
# The function has no parameter
self
.
assertRaises
(
TypeError
,
sys
.
_debugmallocstats
,
True
)
@
unittest
.
skipUnless
(
hasattr
(
sys
,
"getallocatedblocks"
),
"sys.getallocatedblocks unavailable on this build"
)
def
test_getallocatedblocks
(
self
):
...
...
Python/sysmodule.c
View file @
ed0b87d7
...
...
@@ -1186,7 +1186,7 @@ static PyMethodDef sys_methods[] = {
{
"settrace"
,
sys_settrace
,
METH_O
,
settrace_doc
},
{
"gettrace"
,
sys_gettrace
,
METH_NOARGS
,
gettrace_doc
},
{
"call_tracing"
,
sys_call_tracing
,
METH_VARARGS
,
call_tracing_doc
},
{
"_debugmallocstats"
,
sys_debugmallocstats
,
METH_
VAR
ARGS
,
{
"_debugmallocstats"
,
sys_debugmallocstats
,
METH_
NO
ARGS
,
debugmallocstats_doc
},
{
NULL
,
NULL
}
/* sentinel */
};
...
...
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