- Add patch support-python-313.patch:
* Support Python 3.13 AttributeError message changes.
- update to 8.3.0:
* :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.
OBS-URL: https://build.opensuse.org/request/show/1203766
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-testfixtures?expand=0&rev=28
* :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.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-testfixtures?expand=0&rev=57
- Update to 8.2.0:
* The strict option is now correctly respected when comparing nested
objects.
* When comparing datetime.datetime or 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 replacement
doesn't give what's expected.
* Replacement of methods on instances is now prevented when strict=True.
* An exception is now raised when mocking and the original is not in the
__dict__ of its containing objects.
* Fix bug where replacement of methods on subclasses failed when using
Replacer.on_class.
* Implement strict comparison as an option for datetime.datetime
and datetime.time.
* Retire zope.component helpers.
* Support bytes in popen.MockPopen commands.
* Allow TempDirectory instances to be traversed as pathlib.Path objects.
* Use the system default encoding where possible in TempDirectory.
* Add TempDirectory option to manage current working directory.
* Allow string class attributes to be replaced with Replacer and friends.
* Fix nasty bug meaning some Replacer.on_class and Replacer.in_module
replacements weren't restored.
* Allow an alternative separator to be used for traversal during replacement
with Replacer and friends.
* Officially support Python 3.12.
* Drop support Python 3.6.
- Add multibuild to break a cycle.
- Drop patch path-comparsion-312.patch, included upstream.
OBS-URL: https://build.opensuse.org/request/show/1172638
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-testfixtures?expand=0&rev=27
* The strict option is now correctly respected when comparing nested
objects.
* When comparing datetime.datetime or 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 replacement
doesn't give what's expected.
* Replacement of methods on instances is now prevented when strict=True.
* An exception is now raised when mocking and the original is not in the
__dict__ of its containing objects.
* Fix bug where replacement of methods on subclasses failed when using
Replacer.on_class.
* Implement strict comparison as an option for datetime.datetime
and datetime.time.
* Retire zope.component helpers.
* Support bytes in popen.MockPopen commands.
* Allow TempDirectory instances to be traversed as pathlib.Path objects.
* Use the system default encoding where possible in TempDirectory.
* Add TempDirectory option to manage current working directory.
* Allow string class attributes to be replaced with Replacer and friends.
* Fix nasty bug meaning some Replacer.on_class and Replacer.in_module
replacements weren't restored.
* Allow an alternative separator to be used for traversal during replacement
with Replacer and friends.
* Officially support Python 3.12.
* Drop support Python 3.6.
- Add multibuild to break a cycle.
- Drop patch path-comparsion-312.patch, included upstream.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-testfixtures?expand=0&rev=55
- Update to 7.2.2:
* Fix bug in support for :class:`os.PathLike` arguments to
:class:`popen.MockPopen`.
* Added missing support for :class:`os.PathLike` arguments to
:class:`popen.MockPopen`.
* Add ``order_matters`` parameter to :class:`ShouldWarn`.
* 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.
- Add patch path-comparsion-312.patch:
* Compare paths string-wise, due to Python 3.12 changes.
- Switch to autosetup and pyproject macros.
- Remove now unneeded Python 3.6 special-casing.
OBS-URL: https://build.opensuse.org/request/show/1129684
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-testfixtures?expand=0&rev=25
* Fix bug in support for :class:`os.PathLike` arguments to
:class:`popen.MockPopen`.
* Added missing support for :class:`os.PathLike` arguments to
:class:`popen.MockPopen`.
* Add ``order_matters`` parameter to :class:`ShouldWarn`.
* 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.
- Add patch path-comparsion-312.patch:
* Compare paths string-wise, due to Python 3.12 changes.
- Switch to autosetup and pyproject macros.
- Remove now unneeded Python 3.6 special-casing.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-testfixtures?expand=0&rev=51
- Update to 7.0.3 (3 Nov 2022)
* Further bugfixes around self-referential datastructures and :func:`compare`.
- Update to 7.0.2 (1 Nov 2022)
* Reinstate support for self-referential data structures in :func:`compare`. The new implementation provides more clarity about
what's going on and also ignores more immutable data types.
- Update to 7.0.1 (1 Nov 2022)
* Remove non-functional support for self-referential data structures in :func:`compare`. The functionality didn't work but did cause
erroneous reported equality of values in dictionaries that were actually not equal.
OBS-URL: https://build.opensuse.org/request/show/1035575
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-testfixtures?expand=0&rev=23
- Update to 7.0.3 (3 Nov 2022)
* Further bugfixes around self-referential datastructures and :func:`compare`.
- Update to 7.0.2 (1 Nov 2022)
* Reinstate support for self-referential data structures in :func:`compare`. The new implementation provides more clarity about
what's going on and also ignores more immutable data types.
- Update to 7.0.1 (1 Nov 2022)
* Remove non-functional support for self-referential data structures in :func:`compare`. The functionality didn't work but did cause
erroneous reported equality of values in dictionaries that were actually not equal.
OBS-URL: https://build.opensuse.org/request/show/1034933
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-testfixtures?expand=0&rev=46
- Remove testfixtures-sybil3-py310.patch, it's included in upstream now.
- Update to 7.0.0
* Refresh documentation.
* Add type annotations.
* Drop support for Python 2. The minimum supported Python version is now 3.6.
* Sybil 3 is now the minimum supported version if you use
:class:`~.sybil.FileParser`.
* Rename and refactor the date and time mocks, they are now :any:`mock_date`,
:any:`mock_datetime` and :any:`mock_time`. :func:`test_date`,
:func:`test_datetime` and :func:`test_time` are still present as aliases
but are now deprecated.
* Add :meth:`TempDirectory.as_string`, :meth:`TempDirectory.as_path` and
:meth:`TempDirectory.as_local`. :meth:`TempDirectory.getpath` is now
deprecated.
* :class:`TempDirectory` can now be used to wrap existing directories.
* Fixed a bug where :any:`OutputCapture.captured` returned bytes instead of a
string with fd=True.
* The deprecated strict option to :class:`Comparison` has been removed, use
the partial option instead.
* The deprecated :meth:`TempDirectory.check`, :meth:`TempDirectory.check_dir`
and :meth:`TempDirectory.check_all` methods have been removed.
- 6.18.5 (1 Mar 2022)
* Fix bug in detection of Mock backport.
- 6.18.4 (25 Feb 2022)
* Ensure compatibility with Sybil 2 and Sybil 3 along with pytest 6 and
pytest 7.
OBS-URL: https://build.opensuse.org/request/show/1008127
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-testfixtures?expand=0&rev=22
- Update to 7.0.0
* Refresh documentation.
* Add type annotations.
* Drop support for Python 2. The minimum supported Python version is now 3.6.
* Sybil 3 is now the minimum supported version if you use
:class:`~.sybil.FileParser`.
* Rename and refactor the date and time mocks, they are now :any:`mock_date`,
:any:`mock_datetime` and :any:`mock_time`. :func:`test_date`,
:func:`test_datetime` and :func:`test_time` are still present as aliases
but are now deprecated.
* Add :meth:`TempDirectory.as_string`, :meth:`TempDirectory.as_path` and
:meth:`TempDirectory.as_local`. :meth:`TempDirectory.getpath` is now
deprecated.
* :class:`TempDirectory` can now be used to wrap existing directories.
* Fixed a bug where :any:`OutputCapture.captured` returned bytes instead of a
string with fd=True.
* The deprecated strict option to :class:`Comparison` has been removed, use
the partial option instead.
* The deprecated :meth:`TempDirectory.check`, :meth:`TempDirectory.check_dir`
and :meth:`TempDirectory.check_all` methods have been removed.
- 6.18.5 (1 Mar 2022)
* Fix bug in detection of Mock backport.
- 6.18.4 (25 Feb 2022)
* Ensure compatibility with Sybil 2 and Sybil 3 along with pytest 6 and
pytest 7.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-testfixtures?expand=0&rev=43
- update to 6.18.3
* Fix bug when using :func:`compare` on two regular expressions
that have very long patterns.
* Fix bug that meant :class:`LogCapture` didn't preserve or
provide a clean testing environment for filters.
* Fix bug when showing differences between mappings found by
:func:`compare` when mismatching values contained the same
number more than once.
* Add support for lazy resolution of prefix and suffix when using
:func:`compare`.
- Drop appease-django-320.patch merged upstream
- Drop unresolvable Python 2 build
OBS-URL: https://build.opensuse.org/request/show/923887
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-testfixtures?expand=0&rev=40
- Fix build without python2
- version update to 6.14.0
6.14.0 (24 Feb 2020)
--------------------
- Add support for non-deterministic logging order when using :meth:`twisted.LogCapture`.
6.13.1 (20 Feb 2020)
--------------------
- Fix for using :func:`compare` to compare two-element :func:`~unittest.mock.call`
objects.
6.13.0 (18 Feb 2020)
--------------------
- Allow any attributes that need to be ignored to be specified directly when calling
:func:`~testfixtures.comparison.compare_object`. This is handy when writing
comparers for :func:`compare`.
6.12.1 (16 Feb 2020)
--------------------
- Fix a bug that occured when using :func:`compare` to compare a string with a
slotted object that had the same :func:`repr` as the string.
6.12.0 (6 Feb 2020)
-------------------
- Add support for ``universal_newlines``, ``text``, ``encoding`` and ``errors`` to
:class:`popen.MockPopen`, but only for Python 3.
6.11.0 (29 Jan 2020)
--------------------
- :class:`decimal.Decimal` now has better representation when :func:`compare` displays a failed
comparison, particularly on Python 2.
- Add support to :func:`compare` for explicitly naming objects to be compared as ``x`` and ``y``.
This allows symmetry with the ``x_label`` and ``y_label`` parameters that are now documented.
- Restore ability for :class:`Comparison` to compare properties and methods, although these uses
OBS-URL: https://build.opensuse.org/request/show/784177
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-testfixtures?expand=0&rev=11
- version update to 6.14.0
6.14.0 (24 Feb 2020)
--------------------
- Add support for non-deterministic logging order when using :meth:`twisted.LogCapture`.
6.13.1 (20 Feb 2020)
--------------------
- Fix for using :func:`compare` to compare two-element :func:`~unittest.mock.call`
objects.
6.13.0 (18 Feb 2020)
--------------------
- Allow any attributes that need to be ignored to be specified directly when calling
:func:`~testfixtures.comparison.compare_object`. This is handy when writing
comparers for :func:`compare`.
6.12.1 (16 Feb 2020)
--------------------
- Fix a bug that occured when using :func:`compare` to compare a string with a
slotted object that had the same :func:`repr` as the string.
6.12.0 (6 Feb 2020)
-------------------
- Add support for ``universal_newlines``, ``text``, ``encoding`` and ``errors`` to
:class:`popen.MockPopen`, but only for Python 3.
6.11.0 (29 Jan 2020)
--------------------
- :class:`decimal.Decimal` now has better representation when :func:`compare` displays a failed
comparison, particularly on Python 2.
- Add support to :func:`compare` for explicitly naming objects to be compared as ``x`` and ``y``.
This allows symmetry with the ``x_label`` and ``y_label`` parameters that are now documented.
- Restore ability for :class:`Comparison` to compare properties and methods, although these uses
are not recommended.
6.10.3 (22 Nov 2019)
OBS-URL: https://build.opensuse.org/request/show/783805
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-testfixtures?expand=0&rev=22
- version update to 6.9.0
- Fix deprecation warning relating to :func:`getargspec`.
- Improve :doc:`mocking <mocking>` docs.
- Add ``strip_whitespace`` option to :class:`OutputCapture`.
- When ``separate`` is used with :class:`OutputCapture`, differences in ``stdout` and ``stderr``
are now given in the same :class:`AssertionError`.
- :class:`ShouldRaise` no longer catches exceptions that are not of the required type.
- Fixed a problem that resulted in unhelpful :func:`compare` failures when
:func:`~unittest.mock.call` was involved and Python 3.6.7 was used.
OBS-URL: https://build.opensuse.org/request/show/710320
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-testfixtures?expand=0&rev=18