Releases: testing-cabal/testtools
2.7.0
What's Changed
- Fix import of email.message by @jelmer in #347
- Add typing hints for twistedsupport. by @jelmer in #346
- Add disperse configuration by @jelmer in #348
- disperse: Fix tag format (now just X.Y.Z rather than testtools-X.Y.Z) by @jelmer in #349
- disperse: don't manage NEWS for now by @jelmer in #350
- Reduce use of deprecated
distutils
module by @jakelishman in #353 - Upgrade GitHub Actions and test Python 3.12 by @cclauss in #355
- Fix pypy CI runs by @jelmer in #356
- Fix pypy tests in test_testresult.py by @cclauss in #358
- setup.cfg: Add Programming Language :: Python :: 3.12 by @cclauss in #357
- Drop TestCommand by @jelmer in #361
- Drop Python 3.6 support by @jelmer in #362
- Migrate from pbr to hatch by @jelmer in #354
New Contributors
- @jakelishman made their first contribution in #353
- @cclauss made their first contribution in #355
Full Changelog: 2.6.0...2.7.0
2.6.0
What's Changed
- Add support for Python 3.10 by @jugmac00 in #315
- Deprecate distutils integration by @stephenfin in #318
- doc: Remove references to unittest2 by @stephenfin in #323
- Upgrade asserts with teyit for Python 3.11 compatibility by @hugovk in #319
- Fix inclusion of NEWS in Sphinx documentation by @cjwatson in #329
- Replace deprecated assertRaisesRegexp with assertRaisesRegex by @hugovk in #335
- Drop support for EOL 3.5 by @hugovk in #309
- Provide a
testtools[twisted]
extra by @cjwatson in #327 - Fix various test failures with Python 3.11 by @cjwatson in #328
- Making sure that TestCase can be hashed by @gone in #248
- Use CompoundFixture from fixtures>=2.0 rather than rolling our own by @cjwatson in #326
- Prevent AttributeError in TestCase.eq by @tipabu in #336
- Add initial config for mypy by @jelmer in #337
- Fix distutilscmd in Debian + Py 3.11 by @thomasgoirand in #338
- Drop extras from requirements; fixtures no longer uses it by @jelmer in #339
- Replace deprecated
cgi
module usage withemail
by @mtreinish in #340 - Add a few missing entries to NEWS by @cjwatson in #342
- Finish adding support for Python 3.11 by @cjwatson in #343
- Release 2.6.0 by @cjwatson in #344
New Contributors
- @jugmac00 made their first contribution in #315
- @gone made their first contribution in #248
- @tipabu made their first contribution in #336
- @thomasgoirand made their first contribution in #338
Full Changelog: 2.5.0...2.6.0
testtools 2.5.0
Changelog
Improvements
-
Add support for Python 3.9.
-
Python 3.5 has reached end-of-life and this is the last release to support it.
-
The skip, skipIf, and skipUnless decorators can now be used as class
decorators as well as test method decorators, just as they can in
unittest. -
The
SameMembers
matcher class is now exposed as part of the public
matchers API.
Changes
-
The dependency on the
unittest2
module has been removed. This has some
knock on effects, including the removal of theassertItemsEqual
helper
which was removed fromunittest
in Python 3.x. -
The
safe_hasattr
utility has been removed fromtesttools.helpers
.
This was a compat wrapper introduced in 0.9.25 when the utility itself was
moved to theextras
package. It is no longer useless on Python 3-only
projects. -
The
try_imports
utility has been removed fromtesttools.helpers
.
This was a compat wrapper introduced in 0.9.25 when the utility itself was
moved to theextras
package. It is no longer used within testtools and
has therefore been dropped.