From f28880cb3cb0642b96732644fc1a4b8c996d5a48 Mon Sep 17 00:00:00 2001 From: Gustavo Niemeyer Date: Sat, 18 Sep 2010 16:36:32 -0300 Subject: - Implemented support for assertRaises() as a context manager, as in Python 2.7 and 3.2. - Implemented assertIsInstance() and assertIsNotInstance() as well. - Updated NEWS file. --- NEWS | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'NEWS') diff --git a/NEWS b/NEWS index c508df5..53327d8 100644 --- a/NEWS +++ b/NEWS @@ -5,6 +5,17 @@ function will receive the patched or proxied object so that its state may be used or verified in checks. +- assertRaises() in MockerTestCase can now be used like Python 2.7 and 3.2, + as a context manager. This enables contructs such as: + + with self.assertRaises(Error): + raising_logic() + +- Added assertIsInstance() and assertNotIsInstance(). + +- Fixed bug #634566, reported by Mark Hammond, where throw(Error) effects + might make the recorded action be accepted multiple times. + 1.0 (2010-06-20) ================= -- cgit v1.2.1