benjamin.peterson
2008-08-23 20:19:17 UTC
Author: benjamin.peterson
Date: Sat Aug 23 22:19:17 2008
New Revision: 65999
Log:
add NEWS note and test for last commit
Modified:
python/branches/py3k/Lib/test/test_sys.py
python/branches/py3k/Misc/NEWS
Modified: python/branches/py3k/Lib/test/test_sys.py
==============================================================================
--- python/branches/py3k/Lib/test/test_sys.py (original)
+++ python/branches/py3k/Lib/test/test_sys.py Sat Aug 23 22:19:17 2008
@@ -62,6 +62,12 @@
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
# Python/pythonrun.c::PyErr_PrintEx() is tricky.
Modified: python/branches/py3k/Misc/NEWS
==============================================================================
--- python/branches/py3k/Misc/NEWS (original)
+++ python/branches/py3k/Misc/NEWS Sat Aug 23 22:19:17 2008
@@ -26,6 +26,9 @@
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
only one-dimensional contiguous buffers are supported and exercised right
now. Slicing, slice assignment and comparison (equality and inequality)
Date: Sat Aug 23 22:19:17 2008
New Revision: 65999
Log:
add NEWS note and test for last commit
Modified:
python/branches/py3k/Lib/test/test_sys.py
python/branches/py3k/Misc/NEWS
Modified: python/branches/py3k/Lib/test/test_sys.py
==============================================================================
--- python/branches/py3k/Lib/test/test_sys.py (original)
+++ python/branches/py3k/Lib/test/test_sys.py Sat Aug 23 22:19:17 2008
@@ -62,6 +62,12 @@
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
# Python/pythonrun.c::PyErr_PrintEx() is tricky.
Modified: python/branches/py3k/Misc/NEWS
==============================================================================
--- python/branches/py3k/Misc/NEWS (original)
+++ python/branches/py3k/Misc/NEWS Sat Aug 23 22:19:17 2008
@@ -26,6 +26,9 @@
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
only one-dimensional contiguous buffers are supported and exercised right
now. Slicing, slice assignment and comparison (equality and inequality)