Skip to content

Update dependency testfixtures to v11#1798

Open
k1h-renovate[bot] wants to merge 1 commit into
devfrom
renovate/testfixtures-11.x
Open

Update dependency testfixtures to v11#1798
k1h-renovate[bot] wants to merge 1 commit into
devfrom
renovate/testfixtures-11.x

Conversation

@k1h-renovate
Copy link
Copy Markdown
Contributor

@k1h-renovate k1h-renovate Bot commented Mar 10, 2026

This PR contains the following updates:

Package Update Change
testfixtures (changelog) major ==7.0.4==11.0.0

Warning

Some dependencies could not be looked up. Check the warning logs for more information.


Release Notes

Simplistix/testfixtures (testfixtures)

v11.0.0

Compare Source

  • Moved to a uv__-based, pyproject.toml-driven project layout, with main replacing
    master as the default git branch.

    __ https://docs.astral.sh/uv/

  • Move from Circle CI to Github Actions for continuous integration and releasing.

  • Lots of documentation has been refreshed.

  • Python versions between 3.11 and 3.14, inclusive, are now supported.

  • Python versions 3.10 and earlier are no longer supported.

  • :class:TempDir is now introduced as a :class:~pathlib.Path-based alternative to
    :class:TempDirectory.

  • :class:TempDir and :class:TempDirectory have grown support for dumping and parsing JSON,
    YAML and TOML natively by way of the :meth:~TempDir.dump and :meth:TempDir.parse methods.

  • :class:TempDir and :class:TempDirectory now have :meth:~TempDir.read_text and
    :meth:TempDir.read_bytes methods that mirror the behaviour of their :class:~pathlib.Path
    equivalents.

  • :class:TempDir and :class:TempDirectory now support :class:~pathlib.Path objects anywhere
    they previously supported string and sequences of strings.

  • :class:TempDir and :class:TempDirectory now have a :meth:~TempDir.clone method for
    copying existing files or directories into themselves for using during testing.

  • None can now be passed to :class:ShouldRaise to check that no exception is raised.
    This is useful for parameterised tests where some cases may expect an exception to be raised
    while others do not.

  • :class:ShouldRaise now has a match parameter to bring feature parity with
    :func:pytest.raises.

  • :class:Comparison now shows the wrong type when it is compared against a wrong type.

  • :class:Comparison no longer spuriously reports
    :class:~testfixtures.comparers.AlreadySeen as the wrong type.

  • Fixed a bug where comparing parameterised generic type objects resulted in an infinite loop.

v10.0.0

Compare Source

  • Fixed a bug in the warning issued when a :class:Replacer is deleted with replacements still
    in place.

  • Reworked :func:compare options so that typos and the like will now result
    in an exception being raised. This ended up being a breaking change if you use custom comparers
    that take options as this now has a :ref:different API <custom-comparer-options>.

  • Reworked the :doc:compare documentation <comparing> to explain why you should be using it
    as well as updating the examples and explaining more fully how to configure and customise it.

v9.2.0

Compare Source

  • Implement :func:like, :func:sequence, :func:contains, :func:unordered for
    strictly typed :ref:comparisons <comparison-objects>.

  • Correctly type :attr:ShouldRaise.raised.

v9.1.0

Compare Source

  • Add support for passing :class:StringComparison instances as parameters to
    :meth:OutputCapture.compare.

v9.0.1

Compare Source

  • :attr:ShouldRaise.raised is now always an exception instance. If no exception has been raised,
    it will be a :class:~testfixtures.shouldraise.NoException instance. This prevents typing
    complaints around using an attribute that might be None.

  • :func:mock_time has been reworked to return an instance of :class:~testfixtures.datetime.MockTime rather than the
    class itself. :class:~testfixtures.datetime.MockTime has also been reworked such that it can no longer be instantiated
    with the same parameters as :class:~datetime.datetime - this edge case was never supported,
    but is highlighted here in case folks were using it.

v9.0.0

Compare Source

  • Python 3.11 is now the minimum supported version.

  • A show_whitespace parameter has been added to :class:ShouldAssert.

  • testfixtures is now fully typed, checked with mypy__ and is distributed with
    a py.typed marker file.

    __ https://mypy.readthedocs.io/en/stable/

v8.3.0

Compare Source

  • :class:ShouldRaise now supports :class:ExceptionGroup.

  • Fixed bug where :func:~testfixtures.comparison.compare_generator did not respect
    strict=True.

  • Fixed bug in the type annotations for :class:ShouldRaise and
    :func:~testfixtures.comparison.compare_exception.

  • :class:LogCapture will now raise an exception if closed while still installed.
    This can be a source of particularly confusing bugs.

v8.2.0

Compare Source

  • The strict option is now correctly respected when :doc:comparing <comparing> nested objects.

  • When comparing :class:~datetime.datetime or :class:~datetime.time instances, if the fold
    is the only thing that's different, it's now shown in the output.

  • A more detailed exception is now raised when resolving a :doc:replacement <mocking> doesn't give
    what's expected.

  • :doc:Replacement <mocking> of methods on instances is now prevented when strict=True.

  • An exception is now raised when :doc:mocking <mocking> and the original is not in the
    __dict__ of its containing objects.

v8.1.0

Compare Source

  • Fix bug where replacement of methods on subclasses failed when using :meth:Replacer.on_class.

  • Implement :ref:strict comparison <compare-datetime> as an option for :class:~datetime.datetime
    and :class:~datetime.time.

v8.0.0

Compare Source

  • Retire zope.component helpers.

  • Support :class:bytes in :class:popen.MockPopen commands.

  • Allow :class:TempDirectory instances to be traversed as :class:~pathlib.Path objects.

  • Use the system default encoding where possible in :class:TempDirectory.

  • Add :class:TempDirectory option to manage current working directory.

  • Allow string class attributes to be replaced with :class:Replacer and friends.

  • Fix nasty bug meaning some :meth:~Replacer.on_class and :meth:~Replacer.in_module
    replacements weren't restored.

  • Allow an alternative separator to be used for traversal during replacement with
    :class:Replacer and friends.

  • Officially support Python 3.12.

  • Drop support Python 3.6.

v7.2.2

Compare Source

  • Fix bug in support for :class:os.PathLike arguments to :class:popen.MockPopen.

v7.2.1

Compare Source

  • Added missing support for :class:os.PathLike arguments to :class:popen.MockPopen.

v7.2.0

Compare Source

  • Add order_matters parameter to :class:ShouldWarn.

Thanks to Jan Musílek for the implementation!

v7.1.0

Compare Source

  • Implement new IDE and static-analysis ways of :doc:mocking <mocking> including additional
    parameters to :meth:~Replacer.replace along with the :any:replace_on_class,
    :any:replace_in_module and :any:replace_in_environ context managers.

Configuration

📅 Schedule: (in timezone Europe/Stockholm)

  • Branch creation
    • At 06:00 PM through 11:59 PM and 12:00 AM through 05:59 AM, Monday through Friday (* 18-23,0-5 * * 1-5)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Renovate Bot.

@k1h-renovate k1h-renovate Bot requested a review from a team as a code owner March 10, 2026 01:13
@i-oden i-oden added tests pytest skip-changelog For release template labels Mar 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip-changelog For release template tests pytest

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant