Daniel Watkins [Tue, 3 Dec 2013 16:19:32 +0000 (16:19 +0000)]
Remove Python 2.4 deprecation warning special-casing.
Daniel Watkins [Tue, 3 Dec 2013 16:18:03 +0000 (16:18 +0000)]
Remove (always skipped) test for string exceptions.
Daniel Watkins [Tue, 3 Dec 2013 16:17:27 +0000 (16:17 +0000)]
Remove another Python 2.4 special case.
Daniel Watkins [Tue, 3 Dec 2013 16:15:49 +0000 (16:15 +0000)]
Remove and relocate some now un-needed compatibility functions.
Daniel Watkins [Tue, 3 Dec 2013 16:12:12 +0000 (16:12 +0000)]
We no longer need to handle Python 2.4's KeyboardInterrupt specially.
Daniel Watkins [Tue, 3 Dec 2013 16:11:50 +0000 (16:11 +0000)]
Remove trailing whitespace.
Daniel Watkins [Tue, 3 Dec 2013 16:11:10 +0000 (16:11 +0000)]
We no longer need to handle string exceptions in TestCase.
Daniel Watkins [Tue, 3 Dec 2013 16:06:31 +0000 (16:06 +0000)]
Use proper super call in MismatchError.
Robert Collins [Sat, 30 Nov 2013 01:17:41 +0000 (14:17 +1300)]
Open 0.9.35 for dev.
Change-Id: I7dfb9c847b5e13403d7c47cec0c7b8b03423b285
Robert Collins [Sat, 30 Nov 2013 00:57:32 +0000 (13:57 +1300)]
Release 0.9.34
Change-Id: Iebb662afe946733e895f9a2042e89de0413bf13c
Martin Packman [Thu, 28 Nov 2013 17:20:23 +0000 (17:20 +0000)]
Fix test_bom Python 3.3 test failure
Adapt test_compat.TestDetectEncoding.test_bom to skip compile
step on corner case that is no longer valid on Python 3.3
and later.
Change-Id: Ia4d5949363ca4cea603c2a0847742a1df8f68709
Kui Shi [Fri, 25 Oct 2013 13:07:07 +0000 (21:07 +0800)]
In Python 3.3, if there are duplicate test ids, tests.sort() will
fail and raise TypeError.
Detect the duplicate test ids firstly in sorted_tests() to ensure
that all test ids are unique.
Thomi Richards [Wed, 20 Nov 2013 21:48:00 +0000 (10:48 +1300)]
Add 'force_failure' feature to testtools.TestCase.
Change-Id: Idb8c8d0c837ab2cb6ec53c84d144c29b5d6da8ea
Thomi Richards [Mon, 25 Nov 2013 22:00:39 +0000 (11:00 +1300)]
Add testtools.StacktraceContent.
Robert Collins [Sun, 24 Nov 2013 18:22:00 +0000 (07:22 +1300)]
Fix NEWS item sorting.
Change-Id: If697003e5a6c13fbd174b2ce0a0ad83e62e44ec0
Robert Collins [Sun, 24 Nov 2013 06:56:38 +0000 (19:56 +1300)]
Indicate failed imports in list-tests.
Test listing now explicitly indicates by printing 'Failed to import' and
exiting (2) when an import has failed rather than only signalling through the
test name. This plus the introduction of a public helper lays the groundwork
for fixing a usability bug in testrepository caused by the interaction between
failed listings and user test filters.
Change-Id: I7fb8cb70c515c54d8febd68ba791c27db0a7a9c4
Closes-Bug: #
1245672
Robert Collins [Sun, 24 Nov 2013 06:55:42 +0000 (19:55 +1300)]
Be more paranoid about list-tests behaviour.
In test_run we were assuming that testtools.run -l wouldn't be evil and call
sys.exit(), but calling sys.exit() is the contract of TestProgram, so we should
be paranoid about it.
Change-Id: I72d81942322eb9c1d57356741fa0f3806ebf14e8
Robert Collins [Sun, 24 Nov 2013 06:54:28 +0000 (19:54 +1300)]
Cleanup sys.modules correctly in test_run.
We were leaving testtools.runexample behind which breaks test isolation.
Change-Id: I500c20317183596d28f09c0b5a62b03f5f009e4f
Benedikt Morbach [Mon, 30 Sep 2013 02:34:56 +0000 (04:34 +0200)]
run network test on the loopback interface only
We have a sandbox for building packages that doesn't allow this and it
seems to be a good idea in general not to bind to all interfaces, some
of which will be reachable from other machines to run simple tests.
Change-Id: I6cf82d6bd67437dc29d7f9d6c886dadb6e6d8f95
Robert Collins [Sun, 24 Nov 2013 02:22:49 +0000 (15:22 +1300)]
Export AnyMatch properly.
Change-Id: Ia8de6660799387787dc7a2dfb7d3d7a6f6724b55
Jonathan Lange [Sat, 26 Oct 2013 14:23:16 +0000 (15:23 +0100)]
Some notes on discussing changes
Jonathan Lange [Mon, 18 Nov 2013 22:21:27 +0000 (14:21 -0800)]
Merge pull request #62 from thomir/fix-typo
Fix Typo in StreamResult docs. (thomir)
Thomi Richards [Mon, 18 Nov 2013 21:56:45 +0000 (10:56 +1300)]
Fix Typo in StreamResult docs.
Robert Collins [Thu, 7 Nov 2013 21:35:03 +0000 (10:35 +1300)]
Export testtools.content.json_content properly.
Change-Id: I5b6637284e595ee5dff52af0afec8d21c84a47cf
Robert Collins [Tue, 5 Nov 2013 23:27:06 +0000 (12:27 +1300)]
Release 0.9.33.
Change-Id: Ic248da49e1b875da1313103f63a23dd73da2802c
Robert Collins [Tue, 5 Nov 2013 00:19:35 +0000 (13:19 +1300)]
Fix StreamSummary counting of testsRun.
StreamSummary was calculating testsRun incorrectly: exists status tests were
counted as run tests, but they are not.
Change-Id: I9581be45e878a4281904e2039dd7790f9bc1a3bb
Closes-Bug: #
1203728
Robert Collins [Tue, 5 Nov 2013 00:18:21 +0000 (13:18 +1300)]
Fix NEWS formatting.
Change-Id: Id4eeaf3c09493ceaa1eddeb19d92d2bb2a2a823d
Jonathan Lange [Sat, 26 Oct 2013 14:48:29 +0000 (15:48 +0100)]
Comment about disabled test
Jonathan Lange [Sat, 26 Oct 2013 08:38:07 +0000 (01:38 -0700)]
Merge pull request #57 from thomir/refactor-stack-content
Add StackLinesContent, reimplement TracebackContent to use this new class
Thomi Richards [Wed, 23 Oct 2013 22:36:13 +0000 (11:36 +1300)]
Add StackLinesContent, reimplement TracebackContent to use this new class.
Jonathan Lange [Wed, 23 Oct 2013 08:20:03 +0000 (01:20 -0700)]
Merge pull request #55 from thomir/remove-unused-buffer-code
Remove unused code. (thomir)
Thomi Richards [Wed, 23 Oct 2013 08:08:56 +0000 (21:08 +1300)]
Remove unused code.
Jonathan Lange [Mon, 21 Oct 2013 09:10:39 +0000 (02:10 -0700)]
Merge pull request #49 from thomir/refactor-compat-function
Refactor testtools.compat._format_exc_info into two separate functions.
Thomi Richards [Mon, 21 Oct 2013 02:25:21 +0000 (15:25 +1300)]
Added missing line in NEWS file for features merged previously.
Change-Id: I68c448bc0d55bf3b624a6d5119026187667a6ee8
Thomi Richards [Sun, 20 Oct 2013 22:30:17 +0000 (11:30 +1300)]
Refactor testtools.compat._format_exc_info into two separate functions.
Thomi Richards [Fri, 18 Oct 2013 02:02:18 +0000 (15:02 +1300)]
Add the 'addDetailUniqueName' method to TestCase.
Xiao Hanyu [Thu, 13 Jun 2013 07:33:46 +0000 (15:33 +0800)]
Fix a KeysEqual bug.
See https://bugs.launchpad.net/testtools/+bug/
1177217 for details.
Robert Collins [Wed, 4 Sep 2013 21:01:17 +0000 (09:01 +1200)]
Setup gerrit metadata.
We're experimenting with gerrit, and the easiest way to setup a gerrit
environment is through this dotfile.
Change-Id: I45ffff5ae5254ab55153304173271b1287ac34c8
Jonathan Lange [Tue, 16 Jul 2013 14:10:48 +0000 (07:10 -0700)]
Merge pull request #43 from jcollado/isdivisible-typos
Fixed a few typos in the documentation related to IsDivisibleBy
Javier Collado [Fri, 12 Jul 2013 11:57:44 +0000 (13:57 +0200)]
Fixed a few typos in the documentation related to IsDivisibleBy
Jonathan Lange [Mon, 17 Jun 2013 20:58:32 +0000 (21:58 +0100)]
Opening 0.9.33 for development
Jonathan Lange [Mon, 17 Jun 2013 20:52:19 +0000 (21:52 +0100)]
Prepare for 0.9.32
Robert Collins [Sun, 16 Jun 2013 07:25:06 +0000 (19:25 +1200)]
Disable hiding internal frames within user frames.
Per bug
1188420 this currently completely hides important context.
Robert Collins [Sun, 16 Jun 2013 07:15:53 +0000 (19:15 +1200)]
Fix TestSkipped importing with unittest2.
Fixes compat with 'raise TestSkipped' when running on Python2.6 with
unittest2 - bug #
1190951.
Robert Collins [Sun, 12 May 2013 09:41:36 +0000 (21:41 +1200)]
Update NEWS.
Robert Collins [Sun, 12 May 2013 09:40:18 +0000 (21:40 +1200)]
Clarify docstrings for skipIf and skipUnless.
Robert Collins [Sun, 12 May 2013 09:32:06 +0000 (21:32 +1200)]
Move HasLength doc to the correct section.
Clint Byrum [Tue, 7 May 2013 18:40:24 +0000 (11:40 -0700)]
Clarify docstrings for skipIf and skipUnless.
Xiao Hanyu [Tue, 7 May 2013 07:44:34 +0000 (15:44 +0800)]
fix a typo
Xiao Hanyu [Tue, 7 May 2013 06:29:02 +0000 (14:29 +0800)]
adjust HasLength doc position
HasLength matcher has no relation with 'File- and path-related
matchers', so I adjust it to basic matchers doc section
Jonathan Lange [Sat, 27 Apr 2013 19:09:04 +0000 (20:09 +0100)]
Opening 0.9.32 for development
Jonathan Lange [Sat, 27 Apr 2013 19:07:47 +0000 (20:07 +0100)]
Release 0.9.31
Robert Collins [Wed, 17 Apr 2013 20:28:58 +0000 (08:28 +1200)]
Teach ExpectedException how to annotate errors.
Robert Collins [Mon, 8 Apr 2013 09:27:52 +0000 (21:27 +1200)]
Opening 0.9.31 for development.
Robert Collins [Mon, 8 Apr 2013 09:08:44 +0000 (21:08 +1200)]
Release 0.9.30.
Jonathan Lange [Thu, 4 Apr 2013 09:36:11 +0000 (09:36 +0000)]
Make epytext documentation work
Robert Collins [Thu, 4 Apr 2013 08:39:32 +0000 (21:39 +1300)]
Fix doc builds.
Robert Collins [Wed, 3 Apr 2013 11:41:39 +0000 (00:41 +1300)]
DecorateTestCaseResult was missing some used attributes in its exclusion of
forwarded attributes.
Robert Collins [Wed, 3 Apr 2013 11:32:49 +0000 (00:32 +1300)]
ExtendedToStreamDecorator wasn't using kwargs consistently.
Robert Collins [Wed, 3 Apr 2013 05:55:01 +0000 (18:55 +1300)]
Allow customisation of testtools.run --list-tests behaviour.
Robert Collins [Wed, 3 Apr 2013 00:11:33 +0000 (13:11 +1300)]
Add a StreamResult Router.
The router dispatches packets to another StreamResult based on their
route_code, stripping the matching section. Unroutable events are forwarded to
a fallback stream.
Jonathan Lange [Tue, 26 Mar 2013 14:44:18 +0000 (07:44 -0700)]
Merge pull request #34 from djipko/fix_assertraises_metaclasses
Fix assertRaises when the exception has a metaclass
Nikola Dipanov [Tue, 26 Mar 2013 00:20:24 +0000 (01:20 +0100)]
Fix assertRaises when the exception has a metaclass
Due to not taking into account that the type of the class can be a
subclass of type (which is the case when using metaclasses),
assertRaises would report a false positive in case an exception that was
expected had a custom metaclass.
This patch introduces a more robust checking if a given object is a
class or an instance of one, and adds a test case, to make sure
exceptions with custom metaclasses don't break assertRaises.
Robert Collins [Sat, 16 Mar 2013 06:45:05 +0000 (19:45 +1300)]
Add a StreamResult safe for use in threaded/concurrent code.
Robert Collins [Sat, 16 Mar 2013 06:45:05 +0000 (19:45 +1300)]
Add a timestamping StreamResult.
This allows event generators to ignore the timestamp field, it can be added
into the stream - as long as it is before any buffering/queueing/blocking occur
it will be accurate enough.
wbond [Mon, 18 Mar 2013 06:43:19 +0000 (19:43 +1300)]
Fixed SyntaxError when installing via Python 3
Robert Collins [Sat, 16 Mar 2013 06:45:05 +0000 (19:45 +1300)]
Add StreamTagger, for tagging StreamResult events.
Robert Collins [Fri, 15 Mar 2013 16:13:52 +0000 (05:13 +1300)]
Add an adapter to adapt StreamResult event streams into ExtendedTestResult.
This permits running existing tools like test runners and reporters with
StreamResult generating test runs adapting any unittest or testtools compatible
TestResult into a StreamResult.
Robert Collins [Thu, 14 Mar 2013 16:27:57 +0000 (05:27 +1300)]
Add an adapter to convert ExtendedTestResult to StreamResult.
This permits using code that uses any Python unittest test code
with a StreamResult.
Robert Collins [Mon, 11 Mar 2013 23:06:56 +0000 (12:06 +1300)]
Add a dedicated interface for controlling an in-progress TestRun.
Robert Collins [Mon, 11 Mar 2013 23:06:56 +0000 (12:06 +1300)]
Add StreamSummary to generate summary statistics and capture failures.
This is equivalent the to behaviour in the TestResult class, but split into a
dedicated helper (so that decorators and the like don't need to waste cycles
generating them).
Robert Collins [Fri, 8 Mar 2013 12:12:34 +0000 (01:12 +1300)]
Provide a loosely typed buffer layer for simple processing of completed tests.
This avoids all of the buffer management and analysis and should be suitable
for most terminal filters.
Robert Collins [Fri, 8 Mar 2013 12:12:34 +0000 (01:12 +1300)]
Adds a CopyStreamResult which copies StreamResult events to multiple outputs.
This allows applying multiple terminal handlers to one stream.
Robert Collins [Fri, 15 Feb 2013 22:51:04 +0000 (11:51 +1300)]
Adds a recording StreamResult for writing tests with.
Robert Collins [Thu, 21 Feb 2013 01:08:55 +0000 (14:08 +1300)]
This defines a new sort of TestResult, StreamResult.
This is intended to prototype the new API for inclusion upstream.
Robert Collins [Sat, 2 Mar 2013 07:29:52 +0000 (20:29 +1300)]
Add a helper for decorating the result object given to
``case.(__call__/run)`` - DecorateTestCaseResult.
Robert Collins [Wed, 27 Feb 2013 09:28:20 +0000 (22:28 +1300)]
Add support for timestamp events to Placeholder objects.
Robert Collins [Tue, 5 Mar 2013 11:01:11 +0000 (00:01 +1300)]
Placeholder couldn't hold tags, which limits its use.
Robert Collins [Tue, 5 Mar 2013 09:55:25 +0000 (22:55 +1300)]
The error message for setUp and tearDown upcall errors was broken on
Python 3.4. (Monty Taylor, Robert Collins, #
1140688)
Robert Collins [Thu, 21 Feb 2013 01:08:55 +0000 (14:08 +1300)]
The ContentType repr() incorrectly used , instead of ;.
Robert Collins [Fri, 1 Mar 2013 09:36:27 +0000 (22:36 +1300)]
Add NEWS entry for pypy fix.
Jonathan Lange [Fri, 22 Feb 2013 10:32:46 +0000 (10:32 +0000)]
Make test pass with PyPy
Turns out that object() has a long repr() in PyPy. This means that
the 'short objects' test was testing the wrong thing on PyPy, and
thus failing spuriously.
Fix by adding a `CustomRepr` object that deliberately creates a
short `__repr__`.
Robert Collins [Wed, 20 Feb 2013 00:57:10 +0000 (13:57 +1300)]
Handle broken test run() methods in ConcurrentTestSuite.
Jonathan Lange [Thu, 7 Feb 2013 10:47:32 +0000 (10:47 +0000)]
Ignore .testrepository more effectively.
Jonathan Lange [Thu, 7 Feb 2013 10:15:28 +0000 (10:15 +0000)]
Opening 0.9.30 for development.
Jonathan Lange [Thu, 7 Feb 2013 10:07:21 +0000 (10:07 +0000)]
Release 0.9.29
Jonathan Lange [Thu, 7 Feb 2013 09:44:12 +0000 (01:44 -0800)]
Merge pull request #10 from emonty/master
Add filenames to upcall errors
Monty Taylor [Thu, 7 Feb 2013 09:40:41 +0000 (03:40 -0600)]
Report filenames in upcall errors.
Match other errors, which report filenames due to having exceptions
associated with them. Since these errors don't stem from exceptions,
it's harder to directly follow where the problem came from.
Robert Collins [Thu, 7 Feb 2013 08:54:09 +0000 (21:54 +1300)]
Further fix to unicode_output_stream.
Robert Collins [Wed, 6 Feb 2013 22:22:38 +0000 (11:22 +1300)]
Fix handling of io.StringIO in unicode_output_stream.
Jonathan Lange [Tue, 5 Feb 2013 12:10:00 +0000 (04:10 -0800)]
Merge pull request #6 from kampka/master
Use Travis-CI for continuous integration (kampka)
Robert Collins [Tue, 5 Feb 2013 11:07:31 +0000 (00:07 +1300)]
Opening 0.9.29 for development.
Robert Collins [Tue, 5 Feb 2013 10:57:25 +0000 (23:57 +1300)]
Release testtools-0.9.28.
Christian Kampka [Mon, 4 Feb 2013 12:03:06 +0000 (13:03 +0100)]
Add travis-ci continuous integration configuration
Jonathan Lange [Thu, 31 Jan 2013 13:50:08 +0000 (05:50 -0800)]
Merge pull request #5 from jml/api-doc-fixes
Fix epytext for *args
Jonathan Lange [Thu, 31 Jan 2013 13:43:50 +0000 (13:43 +0000)]
Fix epytext for *args
http://epydoc.sourceforge.net/fields.html#fields intimates that
'args' is the correct way of spelling '*args'
Jonathan Lange [Thu, 31 Jan 2013 12:57:26 +0000 (04:57 -0800)]
Merge pull request #2 from jml/git-not-bzr
Update documentation and support files for move to Git from Bazaar.
Jonathan Lange [Thu, 31 Jan 2013 12:55:29 +0000 (12:55 +0000)]
Merge branch 'master' of github.com:jml/testtools into git-not-bzr
Conflicts:
MANIFEST.in
Jonathan Lange [Thu, 31 Jan 2013 12:47:46 +0000 (04:47 -0800)]
Merge pull request #4 from rbtcollins/attr
Add notetests attr-like extension.
Robert Collins [Thu, 31 Jan 2013 00:10:19 +0000 (13:10 +1300)]
Add a nosetests attr-like extension to enable more ways of filtering tests.