third_party/testtools
4 years agoRelease 1.5.0. master
Robert Collins [Thu, 20 Nov 2014 23:20:19 +0000 (12:20 +1300)]
Release 1.5.0.

Change-Id: I9eb08db09551836593e4bb17dae8dde7d6e10848

4 years agoMerge pull request #124 from rbtcollins/show-errors
Thomi Richards [Mon, 17 Nov 2014 19:50:26 +0000 (08:50 +1300)]
Merge pull request #124 from rbtcollins/show-errors

Show import error details.

4 years agoShow import error details.
Robert Collins [Mon, 17 Nov 2014 00:50:22 +0000 (13:50 +1300)]
Show import error details.

When an import error happens ``testtools.run`` will now show the full
error rather than just the name of the module that failed to import.
(Robert Collins)

Change-Id: I2d9d7a4659b51a5e3ea8000301ecb799ed30f463

4 years agoRelease 1.4.0
Robert Collins [Mon, 17 Nov 2014 10:30:45 +0000 (23:30 +1300)]
Release 1.4.0

Change-Id: Ic9982654deea070aeeffc0a7e361271fe9927b69

4 years agoFix setUpClass upcalls on Python 2.6.
Robert Collins [Mon, 17 Nov 2014 02:42:11 +0000 (15:42 +1300)]
Fix setUpClass upcalls on Python 2.6.

``testtools.TestCase`` now inherits from unittest2.TestCase, which
provides a ``setUpClass`` for upcalls on Python 2.6.
(Robert Collins, #1393283)

Change-Id: Id56212e3d7d519c7b73d2e19d3e34013fac34544

4 years agoRelease 1.3.0.
Robert Collins [Sat, 15 Nov 2014 21:54:38 +0000 (10:54 +1300)]
Release 1.3.0.

Change-Id: Ib44a8cc91693b7eef1de649a1013d13e45c92c3c

4 years agoBuild universal wheels.
Robert Collins [Sat, 15 Nov 2014 21:40:44 +0000 (10:40 +1300)]
Build universal wheels.

Since we have single-source code.

Change-Id: I2ea36df6cdc60a31620fb7b8ebfc62e410a8919c

4 years agoFix setup.py to work without six installed.
Robert Collins [Sat, 15 Nov 2014 21:19:00 +0000 (10:19 +1300)]
Fix setup.py to work without six installed.

Sadly setup_requires is evil, but what are we doing to do?

Change-Id: I4c7ac659c73dc51cf213763a79c9b38e621a8d45

4 years agoFix skipping setUpClass with self.skipException
Robert Collins [Sat, 15 Nov 2014 20:57:58 +0000 (09:57 +1300)]
Fix skipping setUpClass with self.skipException

Change-Id: I1f314c91c4e852edafabc7cf3d2b01abe8a62fa3

4 years agoRelease 1.2.1.
Robert Collins [Sat, 15 Nov 2014 20:10:20 +0000 (09:10 +1300)]
Release 1.2.1.

Change-Id: Ie05e2bb7da0a37c4e04c8f35a1d82f587aca2bb2

4 years agoUse a PEP-440 dev version instead of snapshot-.
Robert Collins [Sat, 15 Nov 2014 19:46:53 +0000 (08:46 +1300)]
Use a PEP-440 dev version instead of snapshot-.

This will hopefully fix travis during dev periods.

Change-Id: I63b33c33999a09cc3e52c6cba6b31292b13960e7

4 years agoExpress our required unittest2 version.
Robert Collins [Sat, 15 Nov 2014 19:24:04 +0000 (08:24 +1300)]
Express our required unittest2 version.

This should avoid incompatibilities as reported in
https://github.com/testing-cabal/testtools/issues/121.

Change-Id: I319e2e572c40a589ecbb2be74247f8b1ee7f192b

4 years agoOpening 1.2.1 for development.
Robert Collins [Sat, 15 Nov 2014 10:00:58 +0000 (23:00 +1300)]
Opening 1.2.1 for development.

Change-Id: I15e818502cd937d509dc73578b206183ee68f749

4 years agoRelease 1.2.0.
Robert Collins [Sat, 15 Nov 2014 09:50:26 +0000 (22:50 +1300)]
Release 1.2.0.

Change-Id: I7ad65698ac3ecc45b1f7469ca87d7da0bdfc8fdb

4 years agoExpand test matrix to include Python 3.4 and pypy3
Robert Collins [Sat, 15 Nov 2014 09:10:41 +0000 (22:10 +1300)]
Expand test matrix to include Python 3.4 and pypy3

Change-Id: I607530d8fc1846acbe7d0150fddac166e79a0910

4 years agoPin Pygments below 2.0 for our 3.2 build.
Robert Collins [Sat, 15 Nov 2014 08:51:11 +0000 (21:51 +1300)]
Pin Pygments below 2.0 for our 3.2 build.

See https://bitbucket.org/birkenfeld/pygments-main/issue/1054

Change-Id: I79baae6f4fcf9b453b25c2e1587474d94da73b79

4 years agoUse unittest2 TestProgram implementation.
Robert Collins [Thu, 13 Nov 2014 11:00:38 +0000 (00:00 +1300)]
Use unittest2 TestProgram implementation.

This brings in many fixes made to discovery where previously we were only using
the discovery package or the version in the release of Python that the test
execution was occuring on. (Robert Collins, #1271133)

Change-Id: I6270c8e8949262c01cb3a4e40735077ad6fc1ef2

4 years agoMerge pull request #117 from jelmer/all-all
Jelmer Vernooij [Mon, 10 Nov 2014 21:52:03 +0000 (21:52 +0000)]
Merge pull request #117 from jelmer/all-all

Update testtools.compat.__all__.

4 years agoUpdate testtools.compat.__all__.
Jelmer Vernooij [Sat, 8 Nov 2014 11:49:45 +0000 (11:49 +0000)]
Update testtools.compat.__all__.

Remove references to functions that have been removed in
deedadf3750c16c2f26c5680a158ac96ca10ccd6 from __all__.

4 years agoMake discover run the same tests as 'make test'.
Robert Collins [Thu, 6 Nov 2014 13:56:41 +0000 (02:56 +1300)]
Make discover run the same tests as 'make test'.

We use test parameterisation in test_deferredruntest, but hadn't
defined a load_tests hook to inform discover of that.

Change-Id: Ib32d7cf88b1a9e311476a5286357e46e65de1f1f

4 years agoImprove support for discovery on testtools.tests.
Robert Collins [Thu, 6 Nov 2014 13:47:32 +0000 (02:47 +1300)]
Improve support for discovery on testtools.tests.

Our tests currently import test_with_with into test_testcase so that
we could still run tests on python2.5. Since we no longer support
2.5, we don't need this hack. Its a hack because discovery will
import test_with_with directly itself, and thus we triggered
a duplicate test id error when attempting to use discover on the
testtools test base.

Change-Id: I027929ab4b0df350dd18ab01ffd5c493fe35e101

4 years agoFixup travis. OOPS.
Robert Collins [Sun, 2 Nov 2014 14:33:53 +0000 (03:33 +1300)]
Fixup travis. OOPS.

Change-Id: Ia03284a3ca79c66e0f1e56a526c6b18a70aca687

4 years agoDepend on unittest2.
Robert Collins [Fri, 31 Oct 2014 09:00:45 +0000 (22:00 +1300)]
Depend on unittest2.

unittest2 has backports of discover etc which allows us to make it a
stock feature rather than something that is present sometimes, and
which we have to carry ugly monkey patches for.

Change-Id: Ib30a4a9de8c58edf5d9c4ea5e06d49b0c821f12f

4 years agoWe now publish wheels of testtools.
Robert Collins [Mon, 27 Oct 2014 20:58:44 +0000 (09:58 +1300)]
We now publish wheels of testtools.

Change-Id: Icd49ec797e555b45ca69b23a0c94b5c94a2c3209
Closes-Bug: #issue84

4 years agoFixed docstrings in content.py.
Corey Goldberg [Fri, 19 Sep 2014 13:52:21 +0000 (09:52 -0400)]
Fixed docstrings in content.py.

4 years agoMake text_content more explicit about the types that it accepts.
Thomi Richards [Tue, 14 Oct 2014 00:16:51 +0000 (13:16 +1300)]
Make text_content more explicit about the types that it accepts.

4 years agoFix unit tests which failed under pypy due to a change in the way tracebacks were...
Thomi Richards [Tue, 14 Oct 2014 22:57:20 +0000 (11:57 +1300)]
Fix unit tests which failed under pypy due to a change in the way tracebacks were reported.

4 years agoRelease 1.1.0.
Robert Collins [Sat, 13 Sep 2014 22:52:38 +0000 (10:52 +1200)]
Release 1.1.0.

Change-Id: I9b118c9c898904297137226c6fea62f1d198ce92

4 years agoMerge pull request #105 from rbtcollins/bug-1368440
Thomi Richards [Fri, 12 Sep 2014 20:54:37 +0000 (08:54 +1200)]
Merge pull request #105 from rbtcollins/bug-1368440

Fix masking of fixture.setUp errors.

4 years agoFix masking of fixture.setUp errors.
Robert Collins [Thu, 11 Sep 2014 22:45:31 +0000 (10:45 +1200)]
Fix masking of fixture.setUp errors.

Exceptions in a ``fixture.getDetails`` method will no longer mask
errors raised from the same fixture's ``setUp`` method.
(Robert Collins, #1368440)

Change-Id: I39da334ba57683fd71a5d7af16c32d9170f6e626

4 years agoOpenning 1.0.1 for development.
Robert Collins [Tue, 2 Sep 2014 03:25:39 +0000 (15:25 +1200)]
Openning 1.0.1 for development.

Change-Id: Ibddc9c179bfd74d4f4ee4ac292b46aea9fc43ac7

4 years agoRelease 1.0.0.
Robert Collins [Tue, 2 Sep 2014 03:21:58 +0000 (15:21 +1200)]
Release 1.0.0.

Long overdue, we've adopted a backwards compatibility statement and
recognized that we have plenty of users depending on our behaviour -
calling our version 1.0.0 is a recognition of that.

Change-Id: Ic6127d9db50b1988c818e821bdcf2ee8f35c3fe4

4 years agoMerge pull request #104 from rbtcollins/systemexit
Thomi Richards [Tue, 2 Sep 2014 03:08:12 +0000 (15:08 +1200)]
Merge pull request #104 from rbtcollins/systemexit

Fix handling of uncatchable exceptions.

4 years agoFix handling of uncatchable exceptions.
Robert Collins [Tue, 2 Sep 2014 02:16:33 +0000 (14:16 +1200)]
Fix handling of uncatchable exceptions.

Fix a long-standing bug where tearDown and cleanUps would not be
called if the test run was interrupted. This should fix leaking
external resources from interrupted tests.
(Robert Collins, #1364188)

Fix a long-standing bug where calling sys.exit(0) from within a test
would cause the test suite to exit with 0, without reporting a failure
of that test. We still allow the test suite to be exited (since
catching higher order exceptions requires exceptional circumstances)
but we now call a last-resort handler on the TestCase, resulting in an
error being reported for the test.
(Robert Collins, #1364188)

Change-Id: I0700f33fe7ed01416b37c21eb3f3fd0a7ea917eb

4 years agoMerge pull request #103 from thomir/fix-skip-decorator
rbtcollins [Mon, 1 Sep 2014 06:41:24 +0000 (18:41 +1200)]
Merge pull request #103 from thomir/fix-skip-decorator

Fix issue where using the skip* family of decorators still ran the setUp and tearDown test methods.

4 years agoFix issue where using the skip* family of decorators still ran the setUp and tearDown...
Thomi Richards [Mon, 1 Sep 2014 00:06:31 +0000 (12:06 +1200)]
Fix issue where using the skip* family of decorators still ran the setUp and tearDown test methods.

4 years agoMerge pull request #102 from rbtcollins/master
rbtcollins [Sun, 31 Aug 2014 20:21:04 +0000 (08:21 +1200)]
Merge pull request #102 from rbtcollins/master

Document backwards compatibility policy

4 years agoDocument backwards compatibility policy
Robert Collins [Sun, 31 Aug 2014 10:11:22 +0000 (22:11 +1200)]
Document backwards compatibility policy

Because post 1.0.0 software needs that.

Change-Id: I1802f0947f8b1027b71c75c41fb7c16aafb276ba

4 years agoMerge pull request #101 from rbtcollins/master
Thomi Richards [Fri, 29 Aug 2014 01:57:42 +0000 (13:57 +1200)]
Merge pull request #101 from rbtcollins/master

Document release pre-requisites.

4 years agoDocument release pre-requisites.
Robert Collins [Fri, 29 Aug 2014 01:12:30 +0000 (13:12 +1200)]
Document release pre-requisites.

Change-Id: I3aa9150d0db5952053060f84d431b5b7fdea747e

4 years agoOpening 0.9.40 for development.
Robert Collins [Fri, 29 Aug 2014 01:42:57 +0000 (13:42 +1200)]
Opening 0.9.40 for development.

Change-Id: I992a7f86c2edd2bf65bdfc89dbd6cd2689e96fb5

4 years agoUnbreak discovery from 0.9.38.
Robert Collins [Fri, 29 Aug 2014 01:34:28 +0000 (13:34 +1200)]
Unbreak discovery from 0.9.38.

'Whoops'. _jython_aware_splitext was not defined accurately
enough and broke outside of the testing context.

Change-Id: I4d6a421b90515b24c0f4ad08b5db818b8fec6fe9

4 years agoOpening 0.9.39 for development.
Thomi Richards [Fri, 29 Aug 2014 01:04:48 +0000 (13:04 +1200)]
Opening 0.9.39 for development.

4 years agoBumped version number for release.
Thomi Richards [Fri, 29 Aug 2014 00:50:53 +0000 (12:50 +1200)]
Bumped version number for release.

4 years agoBackport fix for load_tests in package modules.
Robert Collins [Wed, 27 Aug 2014 21:17:14 +0000 (09:17 +1200)]
Backport fix for load_tests in package modules.

Discover was not executing load_tests at the package level, in
contrast to the docs which suggested it was possible. This is a
backport of the Python upstream proposed fix.

Change-Id: Ib952d5ce4ae1a3da0cd27dcf09315d20055d6b5a
Closes-Bug: http://bugs.python.org/issue16662

4 years agoImplement discover import error detection on 2.6.
Robert Collins [Wed, 27 Aug 2014 20:17:52 +0000 (08:17 +1200)]
Implement discover import error detection on 2.6.

Change-Id: I619a3cfa671ba4f1c0b4450c3a297046ec70bff1

4 years agoMerge pull request #97 from jml/api-links
rbtcollins [Wed, 27 Aug 2014 19:42:10 +0000 (07:42 +1200)]
Merge pull request #97 from jml/api-links

Fix broken links to old mumak.net documentation

4 years agoFix broken links to old mumak.net documentation
Jonathan Lange [Wed, 27 Aug 2014 18:01:30 +0000 (19:01 +0100)]
Fix broken links to old mumak.net documentation

4 years agoGo back to capitalized testtools for now.
Jonathan Lange [Tue, 26 Aug 2014 20:04:25 +0000 (21:04 +0100)]
Go back to capitalized testtools for now.

4 years agoFix rST error in `StreamResult`
Jonathan Lange [Tue, 26 Aug 2014 18:54:18 +0000 (19:54 +0100)]
Fix rST error in `StreamResult`

4 years agoInitial cut of API changes
Jonathan Lange [Tue, 26 Aug 2014 18:50:07 +0000 (19:50 +0100)]
Initial cut of API changes

4 years agoIgnore all the things
Jonathan Lange [Tue, 26 Aug 2014 18:49:41 +0000 (19:49 +0100)]
Ignore all the things

4 years agoSome minor tweaks
Jonathan Lange [Tue, 26 Aug 2014 18:49:20 +0000 (19:49 +0100)]
Some minor tweaks

4 years agoOpening 0.9.38 for development.
Robert Collins [Sun, 24 Aug 2014 12:50:40 +0000 (00:50 +1200)]
Opening 0.9.38 for development.

Change-Id: I396261068cd7bb73243182740323740c34c2ca07

4 years agoRelease 0.9.37.
Robert Collins [Sun, 24 Aug 2014 12:48:42 +0000 (00:48 +1200)]
Release 0.9.37.

Change-Id: Ia2966915bd82cb2dfa3c9f302003a3255ca23405

4 years agoHonour stdout on TestProgram more fully.
Robert Collins [Sun, 24 Aug 2014 05:05:39 +0000 (17:05 +1200)]
Honour stdout on TestProgram more fully.

We were failing to pass it into the runner, and this causes hilarity
for child runners which then end up with sys.stdout in their test
  suite, rather than their stub streams.

Change-Id: I19984102547f92493f330059928f7e0b3897c38c

4 years agoHandle content objects better
Robert Collins [Fri, 22 Aug 2014 08:33:09 +0000 (20:33 +1200)]
Handle content objects better

The ``ExtendedToStreamDecorator`` now handles content objects with one
less packet - the last packet of the source content is sent with EOF
set rather than an empty packet with EOF set being sent after the last
packet of the source content.

Change-Id: If908c1fe8e6fbe2ac3834a1cd99e7cd8ace45b3b

4 years agoOpening 0.9.37 for development.
Robert Collins [Fri, 22 Aug 2014 02:28:06 +0000 (14:28 +1200)]
Opening 0.9.37 for development.

Change-Id: I17b280cc68b88ffdc033949aeacccb5538e0ed82

4 years agoRelease 0.9.36
Robert Collins [Fri, 22 Aug 2014 02:25:19 +0000 (14:25 +1200)]
Release 0.9.36

Welcome to our long overdue 0.9.36 release, which improves
compatibility with Python3.4, adds assert_that, a function for using
matchers without TestCase objects, and finally will error if you try
to use setUp or tearDown twice - since that invariably leads to bad
things of one sort or another happening.

Change-Id: I04eebaf5cb0a071ef329ef00361d844ad87e5dd7

4 years agoError if setUp or tearDown are called twice.
Robert Collins [Thu, 21 Aug 2014 03:06:25 +0000 (15:06 +1200)]
Error if setUp or tearDown are called twice.

TestCase.setUp and TestCase.tearDown are only meant to be called once.

Change-Id: If39046eed35257938062b07655b50d9bef0ea5ee
Closes-Bug: #882884

4 years agoRevert back to explicit test identification.
Robert Collins [Thu, 21 Aug 2014 02:57:06 +0000 (14:57 +1200)]
Revert back to explicit test identification.

We haven't setup load_test hooks, and trunk doesn't actually work with
discover :(.

Change-Id: Id7d1a48251c4f9e4147815f9effc2239645869d5

4 years agoMerge pull request #88 from Veebers/minor_doc_fixes
Jonathan Lange [Thu, 21 Aug 2014 16:28:05 +0000 (17:28 +0100)]
Merge pull request #88 from Veebers/minor_doc_fixes

Minor doc fixes (Veebers)

4 years agoRemove newline in url that broke the link in the docs.
Christopher Lee [Mon, 18 Aug 2014 02:48:30 +0000 (14:48 +1200)]
Remove newline in url that broke the link in the docs.

Fix syntax error in docs example.

Remove conflict marker remains from previous conflict.

Remove trailing whitespace from source example in docs

Resolve syntax errors in doc sample code.

4 years agoMerge pull request #85 from robotfuel/master
Jonathan Lange [Tue, 10 Jun 2014 19:46:11 +0000 (20:46 +0100)]
Merge pull request #85 from robotfuel/master

Add assert_that top-level function

4 years agoabandoned pull request revived to comply with comments in review
Chris Gagnon [Tue, 27 May 2014 16:03:11 +0000 (12:03 -0400)]
abandoned pull request revived to comply with comments in review

4 years agoMerge https://github.com/testing-cabal/testtools
Chris Gagnon [Tue, 27 May 2014 16:02:14 +0000 (12:02 -0400)]
Merge https://github.com/testing-cabal/testtools

Conflicts:
NEWS
doc/for-test-authors.rst
testtools/testcase.py
testtools/tests/test_testcase.py

4 years agoMerge pull request #82 from thomir/fix-expectedFailure
Jonathan Lange [Mon, 26 May 2014 08:58:31 +0000 (09:58 +0100)]
Merge pull request #82 from thomir/fix-expectedFailure

Fix expected failure

4 years agoMerge pull request #83 from thomir/add-text-content-check
Jonathan Lange [Fri, 16 May 2014 08:51:42 +0000 (09:51 +0100)]
Merge pull request #83 from thomir/add-text-content-check

Raise a TypeError when text_content is passed bytes, so we get an error as early as possible.

4 years agoRaise a TypeError when text_content is passed bytes, so we get an error as early...
Thomi Richards [Wed, 14 May 2014 02:23:48 +0000 (14:23 +1200)]
Raise a TypeError when text_content is passed bytes, so we get an error as early as possible.

4 years agoMerge pull request #78 from jogo/master
Jonathan Lange [Fri, 2 May 2014 08:38:32 +0000 (09:38 +0100)]
Merge pull request #78 from jogo/master

Add optional message to assert(Not)In

5 years agoAdded failing test for python 3.4 unittest.expectedFailure decorator changes.
Thomi Richards [Tue, 4 Mar 2014 21:00:45 +0000 (10:00 +1300)]
Added failing test for python 3.4 unittest.expectedFailure decorator changes.

5 years agoAdd optional message to assert(Not)In
Joe Gordon [Sat, 15 Feb 2014 02:51:57 +0000 (18:51 -0800)]
Add optional message to assert(Not)In

Just like many other asserts, add an optional message to assertIn
and assertNotIn.  This allows for more descriptive failures.

5 years agoOpening 0.9.36 for development.
Robert Collins [Wed, 29 Jan 2014 10:04:22 +0000 (23:04 +1300)]
Opening 0.9.36 for development.

Change-Id: I2c6708592893152d70084bf659533374aa7cef9f

5 years agoFix automation harder.
Robert Collins [Wed, 29 Jan 2014 10:03:43 +0000 (23:03 +1300)]
Fix automation harder.

Change-Id: I0c1d03e2635272bf2b3335eb211a37e309a2100e

5 years agoRelease 0.9.35.
Robert Collins [Wed, 29 Jan 2014 09:59:47 +0000 (22:59 +1300)]
Release 0.9.35.

Change-Id: Iee08541e591a4415e3be110b4a90ff342122aa02

5 years agoUse a credentials file rather than global keyring.
Robert Collins [Sat, 30 Nov 2013 01:12:42 +0000 (14:12 +1300)]
Use a credentials file rather than global keyring.

Global keyring really doesn't work all that well in the places I tend to run
this script.

Change-Id: I3e926aed2a63ada0a23cb463582b50fea2bfc007

5 years agoDon't try to release 'NEXT'.
Robert Collins [Sat, 30 Nov 2013 01:10:03 +0000 (14:10 +1300)]
Don't try to release 'NEXT'.

Since we stopped double-handling things, NEXT is present in NEWS when we do a
release.

Change-Id: I4f12c0da2856b5ec072328ad9185e060182c8791

5 years agoAdd expectThat method to testtools.TestCase.
Thomi Richards [Thu, 28 Nov 2013 23:51:24 +0000 (12:51 +1300)]
Add expectThat method to testtools.TestCase.

Change-Id: I387df10140fe76af03d2ec693b35e326b2da932e

5 years agoBuild docs as part of the Travis build.
Daniel Watkins [Wed, 4 Dec 2013 13:00:45 +0000 (13:00 +0000)]
Build docs as part of the Travis build.

5 years agoAdd assert_that NEWS entry.
Daniel Watkins [Wed, 4 Dec 2013 12:00:29 +0000 (12:00 +0000)]
Add assert_that NEWS entry.

5 years agoCopy assertThat docstring on to assert_that.
Daniel Watkins [Tue, 3 Dec 2013 17:45:16 +0000 (17:45 +0000)]
Copy assertThat docstring on to assert_that.

5 years agoAdd assert_that function documentation.
Daniel Watkins [Tue, 3 Dec 2013 17:42:51 +0000 (17:42 +0000)]
Add assert_that function documentation.

5 years agoMove assertThat tests to separate module and apply them to assert_that as well.
Daniel Watkins [Tue, 3 Dec 2013 15:45:05 +0000 (15:45 +0000)]
Move assertThat tests to separate module and apply them to assert_that as well.

5 years agoCreate assert_that function and use it from TestCase.assertThat.
Daniel Watkins [Sat, 30 Nov 2013 11:10:07 +0000 (11:10 +0000)]
Create assert_that function and use it from TestCase.assertThat.

This will allow matchers to be used outside of the TestCase context.
This is useful for people who can't buy in to testtools.TestCase fully
(for whatever reason), or who like using function tests (as supported by
nose).

5 years agoMerge pull request #71 from OddBloke/python24_25_removal
Jonathan Lange [Wed, 4 Dec 2013 11:41:40 +0000 (03:41 -0800)]
Merge pull request #71 from OddBloke/python24_25_removal

Remove Python 2.4/2.5 workarounds (OddBloke)

5 years agoAdd NEWS entry for Python 2.4/2.5 code path removal.
Daniel Watkins [Wed, 4 Dec 2013 11:36:45 +0000 (11:36 +0000)]
Add NEWS entry for Python 2.4/2.5 code path removal.

5 years agoUse explanatory functions for gnarly exception handling logic.
Daniel Watkins [Wed, 4 Dec 2013 11:32:43 +0000 (11:32 +0000)]
Use explanatory functions for gnarly exception handling logic.

5 years agoUse super correctly.
Daniel Watkins [Wed, 4 Dec 2013 11:27:03 +0000 (11:27 +0000)]
Use super correctly.

5 years agoRemove workaround for getincrementaldecoder not being in 2.4.
Daniel Watkins [Tue, 3 Dec 2013 16:29:26 +0000 (16:29 +0000)]
Remove workaround for getincrementaldecoder not being in 2.4.

5 years agoRemove documentation suggestion that we support anything older than 2.6.
Daniel Watkins [Tue, 3 Dec 2013 16:27:35 +0000 (16:27 +0000)]
Remove documentation suggestion that we support anything older than 2.6.

5 years agoRevert "Workaround 2.4 threading bug in test_spinner."
Daniel Watkins [Tue, 3 Dec 2013 16:26:22 +0000 (16:26 +0000)]
Revert "Workaround 2.4 threading bug in test_spinner."

This reverts commit ba8af964e7e2b7378e21874c4383870b82bd1599.

5 years agoUse a context manager as suggested by a comment.
Daniel Watkins [Tue, 3 Dec 2013 16:24:04 +0000 (16:24 +0000)]
Use a context manager as suggested by a comment.

5 years agoDon't support Python 2.4 test method naming.
Daniel Watkins [Tue, 3 Dec 2013 16:21:38 +0000 (16:21 +0000)]
Don't support Python 2.4 test method naming.

5 years agoRemove Python 2.4 deprecation warning special-casing.
Daniel Watkins [Tue, 3 Dec 2013 16:19:32 +0000 (16:19 +0000)]
Remove Python 2.4 deprecation warning special-casing.

5 years agoRemove (always skipped) test for string exceptions.
Daniel Watkins [Tue, 3 Dec 2013 16:18:03 +0000 (16:18 +0000)]
Remove (always skipped) test for string exceptions.

5 years agoRemove another Python 2.4 special case.
Daniel Watkins [Tue, 3 Dec 2013 16:17:27 +0000 (16:17 +0000)]
Remove another Python 2.4 special case.

5 years agoRemove and relocate some now un-needed compatibility functions.
Daniel Watkins [Tue, 3 Dec 2013 16:15:49 +0000 (16:15 +0000)]
Remove and relocate some now un-needed compatibility functions.

5 years agoWe no longer need to handle Python 2.4's KeyboardInterrupt specially.
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.

5 years agoRemove trailing whitespace.
Daniel Watkins [Tue, 3 Dec 2013 16:11:50 +0000 (16:11 +0000)]
Remove trailing whitespace.

5 years agoWe no longer need to handle string exceptions in TestCase.
Daniel Watkins [Tue, 3 Dec 2013 16:11:10 +0000 (16:11 +0000)]
We no longer need to handle string exceptions in TestCase.