14
0

Accepting request 784177 from devel:languages:python

- 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
This commit is contained in:
2020-03-26 23:21:36 +00:00
committed by Git OBS Bridge
4 changed files with 63 additions and 12 deletions

View File

@@ -1,3 +1,52 @@
-------------------------------------------------------------------
Thu Mar 12 08:05:21 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>
- Fix build without python2
-------------------------------------------------------------------
Wed Mar 11 12:16:59 UTC 2020 - pgajdos@suse.com
- 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)
--------------------
- Fix bug where new-style classes had their attributes checked with :func:`compare` even
when they were of different types.
6.10.2 (15 Nov 2019)
--------------------
- Fix bugs in :func:`compare` when comparing objects which have both ``__slots__``
and a ``__dict__``.
6.10.1 (1 Nov 2019)
-------------------
- Fix edge case where string interning made dictionary comparison output much less useful.
-------------------------------------------------------------------
Mon Jul 22 12:42:25 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-testfixtures
#
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2020 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -17,30 +17,32 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%bcond_without python2
Name: python-testfixtures
Version: 6.10.0
Version: 6.14.0
Release: 0
Summary: A collection of helpers and mock objects for unit tests and doc tests
License: MIT
Group: Development/Languages/Python
URL: https://github.com/Simplistix/testfixtures
Source: https://files.pythonhosted.org/packages/source/t/testfixtures/testfixtures-%{version}.tar.gz
BuildRequires: %{python_module pytest >= 3.6}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildRequires: python2-mock
# Test case dependencies
BuildRequires: %{python_module Django}
BuildRequires: %{python_module Twisted}
BuildRequires: %{python_module pytest >= 3.6}
BuildRequires: %{python_module pytest-django}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module sybil}
BuildRequires: %{python_module zope.component}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Suggests: python-Django
Suggests: python-Twisted
Suggests: python-sybil
Suggests: python-zope.component
BuildArch: noarch
%if %{with python2}
BuildRequires: python2-mock
%endif
%python_subpackages
%description
@@ -68,7 +70,7 @@ chmod a-x docs/*.txt
%check
export DJANGO_SETTINGS_MODULE=testfixtures.tests.test_django.settings
%python_expand $python -m pytest testfixtures/tests
%pytest testfixtures/tests
%files %{python_files}
%license LICENSE.txt

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:9d230c5c80746f9f86a16a1f751a5cf5d8e317d4cc48243a19fb180d22303bce
size 111976

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:cdfc3d73cb6d3d4dc3c67af84d912e86bf117d30ae25f02fe823382ef99383d2
size 114912