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
ce5415fb
Commit
ce5415fb
authored
Dec 13, 2009
by
Mark Dickinson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make sure that test_capsule always returns NULL on error; this may
help diagnose the sporadic test_capi failures on Solaris.
parent
9273c8b7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
0 deletions
+15
-0
Modules/_testcapimodule.c
Modules/_testcapimodule.c
+15
-0
No files found.
Modules/_testcapimodule.c
View file @
ce5415fb
...
...
@@ -1298,6 +1298,21 @@ test_capsule(PyObject *self, PyObject *args)
if
(
error
)
{
return
raiseTestError
(
"test_capsule"
,
error
);
}
/* 13/12/2009: something is causing test_capi to fail occasionally on
the Solaris buildbot, with the output:
internal test_L_code
internal test_Z_code
internal test_bug_7414
internal test_capsule
XXX undetected error
internaltest test_capi crashed -- <class 'ImportError'>: No module named datetime
It seems possible that test_capsule is raising an exception but
failing to return NULL. Do a PyErr_Occurred check to find out.
*/
if
(
PyErr_Occurred
())
return
NULL
;
Py_RETURN_NONE
;
#undef 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