Releases: testing-cabal/testtools
2.7.2
What's Changed
- stdlib alignment by @stephenfin in #368
- Make ruff-clean and enable ruff in CI by @jelmer in #369
- Format code with ruff by @jelmer in #370
- Handle breaking api change in Python 3.12.1 by @mtreinish in #371
- Install ruff from pyproject.toml, configure dependabot by @jelmer in #374
- Bump actions/setup-python from 4 to 5 by @dependabot in #376
- Bump actions/cache from 3 to 4 by @dependabot in #375
- Treat methodName="runTest" similar to unittest.TestCase by @ncopa in #373
- Bump ruff from 0.4.4 to 0.4.7 by @dependabot in #378
- Bump ruff from 0.4.7 to 0.4.8 by @dependabot in #379
- Change CI to Ubuntu-latest by @jelmer in #380
- Fix installing nested packages by @jelmer in #381
New Contributors
- @dependabot made their first contribution in #376
- @ncopa made their first contribution in #373
Full Changelog: 2.7.1...2.7.2
2.7.1
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.