testtools 0.9.3

testtools 0.9.3

Milestone information

Project:
testtools
Series:
0.9
Version:
0.9.3
Released:
 
Registrant:
testtools developers
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:
2 Jonathan Lange, 4 Robert Collins
Blueprints:
No blueprints are targeted to this milestone.
Bugs:
7 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.3.tar.gz (md5, sig) testtools 0.9.3 75
last downloaded 49 weeks ago
Total downloads: 75

Release notes 

More matchers, Python 2.4 support, faster test cloning by switching to copy
rather than deepcopy and better output when exceptions occur in cleanups are
the defining characteristics of this release.

Changelog 

View the full changelog

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

* New matcher "Annotate" that adds a simple string message to another matcher,
  much like the option 'message' parameter to standard library assertFoo
  methods.

* New matchers "Not" and "MatchesAll". "Not" will invert another matcher, and
  "MatchesAll" that needs a successful match for all of its arguments.

* On Python 2.4, where types.FunctionType cannot be deepcopied, testtools will
  now monkeypatch copy._deepcopy_dispatch using the same trivial patch that
  added such support to Python 2.5. The monkey patch is triggered by the
  absence of FunctionType from the dispatch dict rather than a version check.
  Bug #498030.

* On windows the test 'test_now_datetime_now' should now work reliably.

* TestCase.getUniqueInteger and TestCase.getUniqueString now have docstrings.

* TestCase.getUniqueString now takes an optional prefix parameter, so you can
  now use it in circumstances that forbid strings with '.'s, and such like.

* testtools.testcase.clone_test_with_new_id now uses copy.copy, rather than
  copy.deepcopy. Tests that need a deeper copy should use the copy protocol to
  control how they are copied. Bug #498869.

* The backtrace test result output tests should now pass on windows and other
  systems where os.sep is not '/'.

* When a cleanUp or tearDown exception occurs, it is now accumulated as a new
  traceback in the test details, rather than as a separate call to addError /
  addException. This makes testtools work better with most TestResult objects
  and fixes bug #335816.

0 blueprints and 7 bugs targeted

Bug report Importance Assignee Status
497696 #497696 Test suite failures on windows 2 Critical Robert Collins  10 Fix Released
498030 #498030 python 2.4 support regression in clone_test_with_new_id 2 Critical Robert Collins  10 Fix Released
498869 #498869 change deepcopy to copy 4 Medium Robert Collins  10 Fix Released
502006 #502006 addCleanup docstring tells lies about when cleanups are run 4 Medium Jonathan Lange  10 Fix Released
335816 #335816 tests report multiple results 6 Wishlist Robert Collins  10 Fix Released
489155 #489155 Browseable API documentation 6 Wishlist   10 Fix Released
508200 #508200 Misleading error when setUp or tearDown not upcalled 6 Wishlist Jonathan Lange  10 Fix Released
This milestone contains Public information
Everyone can see this information.