From 145868db15a67675492fbac52d9aecfa4dcf8c84 Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Mon, 20 Dec 2010 02:31:32 +0100 Subject: testtools: Merge in new upstream. --- lib/testtools/NEWS | 38 +++++++++++++++++++++++++++++++++++++- 1 file changed, 37 insertions(+), 1 deletion(-) (limited to 'lib/testtools/NEWS') diff --git a/lib/testtools/NEWS b/lib/testtools/NEWS index 55193080ba..4d2a74430f 100644 --- a/lib/testtools/NEWS +++ b/lib/testtools/NEWS @@ -7,6 +7,31 @@ NEXT Changes ------- +* The timestamps generated by ``TestResult`` objects when no timing data has + been received are now datetime-with-timezone, which allows them to be + sensibly serialised and transported. (Robert Collins, #692297) + +Improvements +------------ + +* ``MultiTestResult`` now forwards the ``time`` API. (Robert Collins, #692294) + +0.9.8 +~~~~~ + +In this release we bring some very interesting improvements: + +* new matchers for exceptions, sets, lists, dicts and more. + +* experimental (works but the contract isn't supported) twisted reactor + support. + +* The built in runner can now list tests and filter tests (the -l and + --load-list options). + +Changes +------- + * addUnexpectedSuccess is translated to addFailure for test results that don't know about addUnexpectedSuccess. Further, it fails the entire result for all testtools TestResults (i.e. wasSuccessful() returns False after @@ -30,6 +55,10 @@ Changes Improvements ------------ +* ``assertIsInstance`` supports a custom error message to be supplied, which + is necessary when using ``assertDictEqual`` on Python 2.7 with a + ``testtools.TestCase`` base class. (Jelmer Vernooij) + * Experimental support for running tests that return Deferreds. (Jonathan Lange, Martin [gz]) @@ -50,6 +79,9 @@ Improvements * ``MatchesException`` added to the ``testtools.matchers`` module - matches an exception class and parameters. (Robert Collins) +* ``MismatchesAll.describe`` no longer appends a trailing newline. + (Michael Hudson-Doyle, #686790) + * New ``KeysEqual`` matcher. (Jonathan Lange) * New helpers for conditionally importing modules, ``try_import`` and @@ -63,7 +95,11 @@ Improvements supplied callable raises and delegates to ``MatchesException`` to validate the exception. (Jonathan Lange) -* ``testools.TestCase.useFixture`` has been added to glue with fixtures nicely. +* Tests will now pass on Python 2.6.4 : an ``Exception`` change made only in + 2.6.4 and reverted in Python 2.6.5 was causing test failures on that version. + (Martin [gz], #689858). + +* ``testtools.TestCase.useFixture`` has been added to glue with fixtures nicely. (Robert Collins) * ``testtools.run`` now supports ``-l`` to list tests rather than executing -- cgit