unittest2 0.4.2 is now released:
http://pypi.python.org/pypi/unittest2/
unittest2 is a backport of the new features in the Python 2.7 version of
the standard library testing framework unittest.
The major improvements over unittest in Python 2.6 include:
* A standard test runner with automatic test discovery
* Improved command line options - fail fast, control-c catching and
buffering standard out
* Many new assert methods
* Improvements to assertRaises (as context manager) and
assertAlmostEqual (delta keyword argument)
* Class and module level setup and teardown
* Cleanup functions for better resource handling
* Test skipping and expected failures
* Lots of other minor changes and improvements
For more details see:
http://www.voidspace.org.uk/python/articles/unittest2.shtml
Version 0.4.2 has feature parity with the version of unittest in Python
2.7 RC 1. There are a few bug fixes since version 0.4.1.
2010/06/06 - 0.4.2
------------------
Improved help message for ``unit2 discover -h``.
SkipTest in unittest.TestCase.setUpClass or setUpModule is now reported
as a
skip rather than an error.
Excessively large diffs due to ``TestCase.assertSequenceEqual`` are no
longer included in failure reports. (Controlled by ``TestCase.maxDiff``.)
Matching files during test discovery is done in
``TestLoader._match_path``. This
method can be overriden in subclasses to, for example, match on the full
file
path instead of the name only or use regular expressions for matching.
Addition of a setuptools compatible entrypoint for the unit2 test runner
script.
Contributed by Chris Withers.
Tests fixed to be compatible with Python 2.7, where deprecation warnings
are
silenced by default.
Feature parity with unittest in Python 2.7 RC 1.
All the best,
Michael Foord
--
http://www.ironpythoninaction.com/
http://www.voidspace.org.uk/blog
--
http://mail.python.org/mailman/listinfo/python-announce-list
Support the Python Software Foundation:
http://www.python.org/psf/donations/