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
e94a37f3
Commit
e94a37f3
authored
Oct 17, 2008
by
Barry Warsaw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Benjamin Peterson's patch to fix bug 3661, sys.call_tracing segfaults.
parent
460ce2ab
Changes
2
Hide 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 @
e94a37f3
...
...
@@ -166,6 +166,9 @@ class SysModuleTest(unittest.TestCase):
self
.
assert_
(
isinstance
(
v
[
3
],
int
))
self
.
assert_
(
isinstance
(
v
[
4
],
str
))
def
test_call_tracing
(
self
):
self
.
assertRaises
(
TypeError
,
sys
.
call_tracing
,
type
,
2
)
def
test_dlopenflags
(
self
):
if
hasattr
(
sys
,
"setdlopenflags"
):
self
.
assert_
(
hasattr
(
sys
,
"getdlopenflags"
))
...
...
Python/sysmodule.c
View file @
e94a37f3
...
...
@@ -783,7 +783,7 @@ static PyObject *
sys_call_tracing
(
PyObject
*
self
,
PyObject
*
args
)
{
PyObject
*
func
,
*
funcargs
;
if
(
!
PyArg_
UnpackTuple
(
args
,
"call_tracing"
,
2
,
2
,
&
func
,
&
funcargs
))
if
(
!
PyArg_
ParseTuple
(
args
,
"OO!:call_tracing"
,
&
func
,
&
PyTuple_Type
,
&
funcargs
))
return
NULL
;
return
_PyEval_CallTracing
(
func
,
funcargs
);
}
...
...
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