Releases: testing-cabal/testtools
2.8.1
What's Changed
- Add workflow for publishing releases by @jelmer in #479
- Add accidentally removed wasSuccessful and control methods to StreamToExtendedDecorator by @jelmer in #480
- Fix verbosity argument for "python3 -m testtools.run discover" by @jelmer in #482
- Fix packaging configuration warnings by @jelmer in #483
- Bump ruff from 0.14.4 to 0.14.7 by @dependabot[bot] in #486
- Bump actions/checkout from 3 to 6 by @dependabot[bot] in #485
- Bump actions/cache from 4 to 5 by @dependabot[bot] in #488
- Bump ruff from 0.14.7 to 0.14.9 by @dependabot[bot] in #489
- Add typing by @stephenfin and @jelmer in #490
- Add Nearly matcher for approximate numerical comparisons by @jelmer in #491
- Improve set comparison output in assertEqual by @jelmer in #492
- Avoid calling broken "hatch run test" by @jelmer in #493
Full Changelog: 2.8.0...2.8.1
2.8.0
What's Changed
- Switch to hatchling for building tarballs by @jelmer in #382
- README.rst: fix formatting by @jelmer in #383
- Prepare tests for upcoming twisted version by @arkamar in #387
- Make version tuple major/minor/patch elements integers by @jelmer in #404
- Stop using twisted.internet.defer.returnValue by @cjwatson in #413
- Remove support for Python 3.8 + deprecated methods and classes by @stephenfin in #424
- Support TestCase.assertRaises being used as a context manager by @jelmer in #443
- Enable more ruff lints and fix reported issues by @jelmer in #444
- doc: Bump minimum supported python version by @kajinamit in #447
- Remove deprecated Python26Result and Python27Result by @jelmer in #445
- Add tox env to run ruff by @kajinamit in #448
- Replace deprecated datetime module APIs by @kajinamit in #446
- Support addDuration by @jelmer in #453
- Bump ruff from 0.12.2 to 0.12.3 by @dependabot[bot] in #454
- Preserve type when using fixture by @allenap in #455
- Relax the return type on
UseFixtureProtocol.getDetailsby @allenap in #456 - Bump ruff from 0.12.3 to 0.12.5 by @dependabot[bot] in #458
- Avoid using try_import by @jelmer in #459
- Bump actions/setup-python from 5 to 6 by @dependabot[bot] in #466
- Bump actions/checkout from 4 to 5 by @dependabot[bot] in #463
- Drop Python 3.9 support and add Python 3.13 and 3.14 support. by @jelmer in #476
New Contributors
- @arkamar made their first contribution in #387
- @kajinamit made their first contribution in #447
Full Changelog: 2.7.2...2.8.0
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
distutilsmodule 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
cgimodule usage withemailby @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
SameMembersmatcher class is now exposed as part of the public
matchers API.
Changes
-
The dependency on the
unittest2module has been removed. This has some
knock on effects, including the removal of theassertItemsEqualhelper
which was removed fromunittestin Python 3.x. -
The
safe_hasattrutility has been removed fromtesttools.helpers.
This was a compat wrapper introduced in 0.9.25 when the utility itself was
moved to theextraspackage. It is no longer useless on Python 3-only
projects. -
The
try_importsutility has been removed fromtesttools.helpers.
This was a compat wrapper introduced in 0.9.25 when the utility itself was
moved to theextraspackage. It is no longer used within testtools and
has therefore been dropped.