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
09093823
Commit
09093823
authored
Aug 23, 2008
by
Benjamin Peterson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add NEWS note and test for last commit
parent
0194a184
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
0 deletions
+9
-0
Lib/test/test_sys.py
Lib/test/test_sys.py
+6
-0
Misc/NEWS
Misc/NEWS
+3
-0
No files found.
Lib/test/test_sys.py
View file @
09093823
...
@@ -62,6 +62,12 @@ class SysModuleTest(unittest.TestCase):
...
@@ -62,6 +62,12 @@ class SysModuleTest(unittest.TestCase):
self
.
assert_
(
err
.
getvalue
().
endswith
(
"ValueError: 42
\
n
"
))
self
.
assert_
(
err
.
getvalue
().
endswith
(
"ValueError: 42
\
n
"
))
def
test_excepthook
(
self
):
with
test
.
support
.
captured_output
(
"stderr"
)
as
stderr
:
sys
.
excepthook
(
1
,
'1'
,
1
)
self
.
assert_
(
"TypeError: print_exception(): Exception expected for "
\
"value, str found"
in
stderr
.
getvalue
())
# FIXME: testing the code for a lost or replaced excepthook in
# FIXME: testing the code for a lost or replaced excepthook in
# Python/pythonrun.c::PyErr_PrintEx() is tricky.
# Python/pythonrun.c::PyErr_PrintEx() is tricky.
...
...
Misc/NEWS
View file @
09093823
...
@@ -26,6 +26,9 @@ What's new in Python 3.0b3?
...
@@ -26,6 +26,9 @@ What's new in Python 3.0b3?
Core and Builtins
Core and Builtins
-----------------
-----------------
- Issue #3653: Fix a segfault when sys.excepthook was called with invalid
arguments.
- Issue #2394: implement more of the memoryview API, with the caveat that
- Issue #2394: implement more of the memoryview API, with the caveat that
only one-dimensional contiguous buffers are supported and exercised right
only one-dimensional contiguous buffers are supported and exercised right
now. Slicing, slice assignment and comparison (equality and inequality)
now. Slicing, slice assignment and comparison (equality and inequality)
...
...
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