testtools 0.9.13

Milestone information

Project:
testtools
Series:
0.9
Version:
0.9.13
Released:
 
Registrant:
Jonathan Lange
Release registered:
Active:
No. Drivers cannot target bugs and blueprints to this milestone.  

Download RDF metadata

Activities

Assigned to you:
No blueprints or bugs assigned to you.
Assignees:
1 Graham Binns, 5 Jonathan Lange, 1 Robert Collins
Blueprints:
No blueprints are targeted to this milestone.
Bugs:
8 Fix Released

Download files for this release

After you've downloaded a file, you can verify its authenticity using its MD5 sum or signature. (How do I verify a download?)

File Description Downloads
download icon testtools-0.9.13.tar.gz (md5, sig) 717
last downloaded 47 weeks ago
Total downloads: 717

Release notes 

Plenty of new matchers and quite a few critical bug fixes (especially to do
with stack traces from failed assertions). A net win for all.

Changelog 

View the full changelog

Changes
-------

* ``MatchesAll`` now takes an ``first_only`` keyword argument that changes how
mismatches are displayed. If you were previously passing matchers to
``MatchesAll`` with keyword arguments, then this change might affect your
test results. (Jonathan Lange)

Improvements
------------

* Actually hide all of the testtools stack for assertion failures. The
previous release promised clean stack, but now we actually provide it.
(Jonathan Lange, #854769)

* ``assertRaises`` now includes the ``repr`` of the callable that failed to raise
properly. (Jonathan Lange, #881052)

* Asynchronous tests no longer hang when run with trial.
(Jonathan Lange, #926189)

* ``Content`` objects now have an ``as_text`` method to convert their contents
to Unicode text. (Jonathan Lange)

* Failed equality assertions now line up. (Jonathan Lange, #879339)

* ``FullStackRunTest`` no longer aborts the test run if a test raises an
error. (Jonathan Lange)

* ``MatchesAll`` and ``MatchesListwise`` both take a ``first_only`` keyword
argument. If True, they will report only on the first mismatch they find,
and not continue looking for other possible mismatches.
(Jonathan Lange)

* New helper, ``Nullary`` that turns callables with arguments into ones that
don't take arguments. (Jonathan Lange)

* New matchers:

* ``DirContains`` matches the contents of a directory.
(Jonathan Lange, James Westby)

* ``DirExists`` matches if a directory exists.
(Jonathan Lange, James Westby)

* ``FileContains`` matches the contents of a file.
(Jonathan Lange, James Westby)

* ``FileExists`` matches if a file exists.
(Jonathan Lange, James Westby)

* ``HasPermissions`` matches the permissions of a file. (Jonathan Lange)

* ``MatchesPredicate`` matches if a predicate is true. (Jonathan Lange)

* ``PathExists`` matches if a path exists. (Jonathan Lange, James Westby)

* ``SamePath`` matches if two paths are the same. (Jonathan Lange)

* ``TarballContains`` matches the contents of a tarball. (Jonathan Lange)

* ``MultiTestResult`` supports the ``tags`` method.
(Graham Binns, Francesco Banconi, #914279)

* ``ThreadsafeForwardingResult`` supports the ``tags`` method.
(Graham Binns, Francesco Banconi, #914279)

* ``ThreadsafeForwardingResult`` no longer includes semaphore acquisition time
in the test duration (for implicitly timed test runs).
(Robert Collins, #914362)

0 blueprints and 8 bugs targeted

Bug report Importance Assignee Status
881052 #881052 assertRaises gives error about a lambda 2 Critical Jonathan Lange  10 Fix Released
881778 #881778 frame hiding cannot be disabled, interferes with debugging 2 Critical Jonathan Lange  10 Fix Released
914362 #914362 ThreadSafeForwardingResult includes semaphore acquisition on timestampless test runs 2 Critical Robert Collins  10 Fix Released
926189 #926189 Using the Trial test runner results in a spinning test 2 Critical Jonathan Lange  10 Fix Released
854769 #854769 Stack trace still has too many levels of stack 4 Medium Jonathan Lange  10 Fix Released
879339 #879339 Align 'assertEqual' output 6 Wishlist Jonathan Lange  10 Fix Released
914278 #914278 ThreadSafeForwardingResult does not support tags() 6 Wishlist   10 Fix Released
914279 #914279 MultiTestResult does not support tags 6 Wishlist Graham Binns  10 Fix Released
This milestone contains Public information
Everyone can see this information.