Automatic conversion of the NetBSD pkgsrc CVS module, use with care
Find a file
obache 3d086098f0 Update py-testtools to 0.9.12.
0.9.12
~~~~~~

This is a very big release.  We've made huge improvements on three fronts:
 1. Test failures are way nicer and easier to read
 2. Matchers and ``assertThat`` are much more convenient to use
 3. Correct handling of extended unicode characters

We've trimmed off the fat from the stack trace you get when tests fail, we've
cut out the bits of error messages that just didn't help, we've made it easier
to annotate mismatch failures, to compare complex objects and to match raised
exceptions.

Testing code was never this fun.

Changes
-------

* ``AfterPreproccessing`` renamed to ``AfterPreprocessing``, which is a more
  correct spelling.  Old name preserved for backwards compatibility, but is
  now deprecated.  Please stop using it.
  (Jonathan Lange, #813460)

* ``assertThat`` raises ``MismatchError`` instead of
  ``TestCase.failureException``.  ``MismatchError`` is a subclass of
  ``AssertionError``, so in most cases this change will not matter. However,
  if ``self.failureException`` has been set to a non-default value, then
  mismatches will become test errors rather than test failures.

* ``gather_details`` takes two dicts, rather than two detailed objects.
  (Jonathan Lange, #801027)

* ``MatchesRegex`` mismatch now says "<value> does not match /<regex>/" rather
  than "<regex> did not match <value>". The regular expression contains fewer
  backslashes too. (Jonathan Lange, #818079)

* Tests that run with ``AsynchronousDeferredRunTest`` now have the ``reactor``
  attribute set to the running reactor. (Jonathan Lange, #720749)

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

* All public matchers are now in ``testtools.matchers.__all__``.
  (Jonathan Lange, #784859)

* ``assertThat`` can actually display mismatches and matchers that contain
  extended unicode characters. (Jonathan Lange, Martin [gz], #804127)

* ``assertThat`` output is much less verbose, displaying only what the mismatch
  tells us to display. Old-style verbose output can be had by passing
  ``verbose=True`` to assertThat. (Jonathan Lange, #675323, #593190)

* ``assertThat`` accepts a message which will be used to annotate the matcher.
  This can be given as a third parameter or as a keyword parameter.
  (Robert Collins)

* Automated the Launchpad part of the release process.
  (Jonathan Lange, #623486)

* Correctly display non-ASCII unicode output on terminals that claim to have a
  unicode encoding. (Martin [gz], #804122)

* ``DocTestMatches`` correctly handles unicode output from examples, rather
  than raising an error. (Martin [gz], #764170)

* ``ErrorHolder`` and ``PlaceHolder`` added to docs. (Jonathan Lange, #816597)

* ``ExpectedException`` now matches any exception of the given type by
  default, and also allows specifying a ``Matcher`` rather than a mere regular
  expression. (Jonathan Lange, #791889)

* ``FixtureSuite`` added, allows test suites to run with a given fixture.
  (Jonathan Lange)

* Hide testtools's own stack frames when displaying tracebacks, making it
  easier for test authors to focus on their errors.
  (Jonathan Lange, Martin [gz], #788974)

* Less boilerplate displayed in test failures and errors.
  (Jonathan Lange, #660852)

* ``MatchesException`` now allows you to match exceptions against any matcher,
  rather than just regular expressions.  (Jonathan Lange, #791889)

* ``MatchesException`` now permits a tuple of types rather than a single type
  (when using the type matching mode).  (Robert Collins)

* ``MatchesStructure.byEquality`` added to make the common case of matching
  many attributes by equality much easier.  ``MatchesStructure.byMatcher``
  added in case folk want to match by things other than equality.
  (Jonathan Lange)

* New convenience assertions, ``assertIsNone`` and ``assertIsNotNone``.
  (Christian Kampka)

* New matchers:

  * ``AllMatch`` matches many values against a single matcher.
    (Jonathan Lange, #615108)

  * ``Contains``. (Robert Collins)

  * ``GreaterThan``. (Christian Kampka)

* New helper, ``safe_hasattr`` added. (Jonathan Lange)

* ``reraise`` added to ``testtools.compat``. (Jonathan Lange)
2011-10-07 10:45:06 +00:00
archivers Set LICENSE to gnu-gpl-v2. 2011-10-07 00:39:25 +00:00
audio Add LICENSE. 2011-10-07 08:47:47 +00:00
benchmarks void main 2011-09-14 07:11:33 +00:00
biology Fix impossible depends. 2011-10-07 03:57:23 +00:00
bootstrap Not every tar knows -z. 2011-10-04 11:37:38 +00:00
cad Add pkg-config for gtk2 detection to address bulk build failure. 2011-09-29 18:00:57 +00:00
chat Update pidgin-facebookchat to 1.69. 2011-10-05 09:23:44 +00:00
comms Remove zaptel option, zaptel-netbsd was removed. 2011-10-06 08:35:01 +00:00
converters Update p5-p5-MARC-Charset to 1.33. 2011-10-06 15:06:07 +00:00
cross Add missing include for strcmp. 2011-09-24 19:31:09 +00:00
databases Update p5-Catalyst-Model-DBIC-Schema to 0.55. 2011-10-06 15:16:59 +00:00
devel Update py-testtools to 0.9.12. 2011-10-07 10:45:06 +00:00
distfiles
doc Updated emulators/suse113_base to 11.3nb6 2011-10-07 08:23:46 +00:00
editors Update emacs-snapshot to 24.0.90.20111004. 2011-10-04 19:30:01 +00:00
emulators Create mount point empty diredtory, /emul/linux/dev/shm. 2011-10-07 08:22:46 +00:00
filesystems Add missing comments and RCSId in 3.2.3 patches, fix patch-bb checksum 2011-10-06 02:19:05 +00:00
finance Update ruby-braintree package to 2.11.0. 2011-09-12 14:53:17 +00:00
fonts Add HOMEPAGE and LICENSE. 2011-10-04 08:37:51 +00:00
games Fix build on -current. Fix a minor piece of pkglint. 2011-10-03 04:37:05 +00:00
geography Handle isnan from cmath on NetBSD like on Darwin. 2011-09-21 13:15:20 +00:00
graphics Add --without-octave to CONFIGURE_ARGS. This fixes a failure with upcoming 2011-10-06 20:26:28 +00:00
ham recursive bump from gnome-vfs drop crypto dependency. 2011-07-21 13:05:46 +00:00
inputmethod Transitive closure for RUBY_VERSION_SUPPORTED=18. 2011-09-21 21:40:20 +00:00
lang Atomic operations via gcc are not supported on many archs. Allow them only 2011-10-06 05:34:00 +00:00
licenses Add adobe-flashsupport-license for use with multimedia/libflashsupport 2011-08-05 15:11:29 +00:00
mail Update cyrus-imapd24 to 2.4.12. 2011-10-05 01:32:31 +00:00
math + py-roman 2011-10-05 07:46:12 +00:00
mbone Revision bump after updating perl5 to 5.14.1. 2011-08-14 12:59:47 +00:00
meta-pkgs Add xlsfonts. 2011-10-04 21:04:26 +00:00
misc Update to 3.3.4 2011-10-06 12:42:26 +00:00
mk In SunOS 5.10 and earlier, some tools only exist in /usr/sfw/bin. 2011-10-04 13:08:42 +00:00
multimedia Remove packages scheduled to be deleted according to the pkgsrc-2011Q2 2011-10-02 14:11:51 +00:00
net update to 0.2.2.33 2011-10-06 18:06:15 +00:00
news Use SUBST to convert the local function called pipe2() into trn_pip2(), 2011-10-03 05:30:07 +00:00
packages
parallel Add missing tool "pax" 2011-09-05 20:19:52 +00:00
pkgtools pkg_delete -R does not remove all leaves. 2011-09-29 23:30:21 +00:00
print Fix detection of -fstack-protector. 2011-10-04 14:11:14 +00:00
regress Reset maintainer, developer lost his commit bit. 2010-03-21 16:29:38 +00:00
security Update security/p5-Crypt-DSA to 1.17 2011-10-06 19:22:02 +00:00
shells Add working MASTER_SITES. 2011-09-24 12:03:19 +00:00
sysutils Fix another broken DEPENDS line. 2011-10-07 03:58:04 +00:00
templates Tell users to use "pkg_admin audit" instead of audit-packages. 2010-03-18 10:18:19 +00:00
textproc Update p5-XML-LibXML-Simple to 0.91. 2011-10-07 07:57:26 +00:00
time Update to 877 2011-09-17 13:35:17 +00:00
wm Fix fallout from include guard rename in libX11 2011-09-24 13:01:28 +00:00
www PHP_VERSIONS_ACCEPTED=52, because php-fileinfo doesn't accept php53. 2011-10-07 05:45:03 +00:00
x11 Roll all the pkgsrc patches (of which there were far too many, and 2011-10-06 15:50:37 +00:00
Makefile
pkglocate Fix PR 39648: 2010-11-11 19:56:34 +00:00
README

$NetBSD: README,v 1.18 2005/05/07 22:18:28 wiz Exp $

Please see doc/pkgsrc.txt for information.