Hello community,
here is the log from the commit of package python-testfixtures for
openSUSE:Factory checked in at 2020-10-29 09:45:23
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-testfixtures (Old)
and /work/SRC/openSUSE:Factory/.python-testfixtures.new.3463 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-testfixtures"
Thu Oct 29 09:45:23 2020 rev:14 rq:835017 version:6.14.2
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-testfixtures/python-testfixtures.changes
2020-06-26 21:44:00.213554552 +0200
+++
/work/SRC/openSUSE:Factory/.python-testfixtures.new.3463/python-testfixtures.changes
2020-10-29 09:45:33.968013322 +0100
@@ -1,0 +2,7 @@
+Wed Sep 16 21:30:17 UTC 2020 - Dirk Mueller <[email protected]>
+
+- update to 6.14.2:
+ - Fix bug where ``ignore_eq`` had no effect on nested objects when using
:func:`compare`
+- remove python383.patch (upstream)
+
+-------------------------------------------------------------------
Old:
----
python383.patch
testfixtures-6.14.1.tar.gz
New:
----
testfixtures-6.14.2.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-testfixtures.spec ++++++
--- /var/tmp/diff_new_pack.n6PXzf/_old 2020-10-29 09:45:37.868017006 +0100
+++ /var/tmp/diff_new_pack.n6PXzf/_new 2020-10-29 09:45:37.872017010 +0100
@@ -19,13 +19,12 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%bcond_without python2
Name: python-testfixtures
-Version: 6.14.1
+Version: 6.14.2
Release: 0
Summary: A collection of helpers and mock objects for unit tests and
doc tests
License: MIT
URL: https://github.com/Simplistix/testfixtures
Source:
https://files.pythonhosted.org/packages/source/t/testfixtures/testfixtures-%{version}.tar.gz
-Patch0: python383.patch
BuildRequires: %{python_module Django}
BuildRequires: %{python_module Twisted}
BuildRequires: %{python_module pytest >= 3.6}
@@ -58,7 +57,6 @@
%prep
%setup -q -n testfixtures-%{version}
-%patch0 -p1
chmod a-x docs/*.txt
%build
++++++ testfixtures-6.14.1.tar.gz -> testfixtures-6.14.2.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/testfixtures-6.14.1/CHANGELOG.rst
new/testfixtures-6.14.2/CHANGELOG.rst
--- old/testfixtures-6.14.1/CHANGELOG.rst 2020-04-20 14:27:37.000000000
+0200
+++ new/testfixtures-6.14.2/CHANGELOG.rst 2020-09-04 19:48:19.000000000
+0200
@@ -3,6 +3,13 @@
.. currentmodule:: testfixtures
+6.14.2 (4 Sep 2020)
+-------------------
+
+- Fix bug where ``ignore_eq`` had no effect on nested objects when using
:func:`compare`.
+
+Thanks to Grégoire Payen de La Garanderie for the fix.
+
6.14.1 (20 Apr 2020)
--------------------
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/testfixtures-6.14.1/PKG-INFO
new/testfixtures-6.14.2/PKG-INFO
--- old/testfixtures-6.14.1/PKG-INFO 2020-04-20 14:27:41.000000000 +0200
+++ new/testfixtures-6.14.2/PKG-INFO 2020-09-04 19:48:23.000000000 +0200
@@ -1,6 +1,6 @@
Metadata-Version: 2.1
Name: testfixtures
-Version: 6.14.1
+Version: 6.14.2
Summary: A collection of helpers and mock objects for unit tests and doc tests.
Home-page: https://github.com/Simplistix/testfixtures
Author: Chris Withers
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/testfixtures-6.14.1/docs/datetime.txt
new/testfixtures-6.14.2/docs/datetime.txt
--- old/testfixtures-6.14.1/docs/datetime.txt 2020-04-20 14:27:37.000000000
+0200
+++ new/testfixtures-6.14.2/docs/datetime.txt 2020-09-04 19:48:19.000000000
+0200
@@ -6,13 +6,13 @@
Testing code that involves dates and times or which has behaviour
dependent on the date or time it is executed at has historically been
tricky. Mocking lets you perform tests on this type of code and
-TestFixtures provides three specialised mock objects to help with
+testfixtures provides three specialised mock objects to help with
this.
Dates
~~~~~
-TestFixtures provides the :func:`~testfixtures.test_date` function
+The testfixtures package provides the :func:`~testfixtures.test_date` function
that returns a subclass of :class:`datetime.date` with a
:meth:`~datetime.date.today` method that will return a
consistent sequence of dates each time it is called.
@@ -99,7 +99,7 @@
Datetimes
~~~~~~~~~
-TextFixtures provides the :func:`~testfixtures.test_datetime`
+The testfixtures package provides the :func:`~testfixtures.test_datetime`
function that returns a subclass of :class:`datetime.datetime` with
a :meth:`~datetime.datetime.now` method that will return a
consistent sequence of :obj:`~datetime.datetime` objects each time
@@ -294,7 +294,7 @@
Times
~~~~~
-TextFixtures provides the :func:`~testfixtures.test_time`
+The testfixtures package provides the :func:`~testfixtures.test_time`
function that, when called, returns a replacement for the
:func:`time.time` function.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/testfixtures-6.14.1/testfixtures/comparison.py
new/testfixtures-6.14.2/testfixtures/comparison.py
--- old/testfixtures-6.14.1/testfixtures/comparison.py 2020-04-20
14:27:37.000000000 +0200
+++ new/testfixtures-6.14.2/testfixtures/comparison.py 2020-09-04
19:48:19.000000000 +0200
@@ -100,7 +100,7 @@
y_attrs = _extract_attrs(y, _attrs_to_ignore(context, ignore_attributes,
y))
if x_attrs is None or y_attrs is None or not (x_attrs and y_attrs):
return compare_simple(x, y, context)
- if x_attrs != y_attrs:
+ if context.ignore_eq or x_attrs != y_attrs:
return _compare_mapping(x_attrs, y_attrs, context, x,
'attributes ', '.%s')
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/testfixtures-6.14.1/testfixtures/tests/test_compare.py
new/testfixtures-6.14.2/testfixtures/tests/test_compare.py
--- old/testfixtures-6.14.1/testfixtures/tests/test_compare.py 2020-04-20
14:27:37.000000000 +0200
+++ new/testfixtures-6.14.2/testfixtures/tests/test_compare.py 2020-09-04
19:48:19.000000000 +0200
@@ -1508,6 +1508,25 @@
ignore_eq=True
)
+ def test_nested_django_orm_in_object(self):
+ class MyObject(object):
+ def __init__(self, orm):
+ self.orm = orm
+
+ self.check_raises(
+ message="MyObject not as expected:\n"
+ "\n"
+ "attributes differ:\n"
+ "'orm': OrmObj: 1 (expected) != OrmObj: 2 (actual)\n"
+ "\n"
+ "While comparing .orm: OrmObj not as expected:\n"
+ "\n"
+ "attributes differ:\n"
+ "'a': 1 (expected) != 2 (actual)",
+ expected=MyObject(self.OrmObj(1)),
+ actual=MyObject(self.OrmObj(2)),
+ ignore_eq=True)
+
def test_mock_call_same(self):
m = Mock()
m.foo(1, 2, x=3)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/testfixtures-6.14.1/testfixtures/utils.py
new/testfixtures-6.14.2/testfixtures/utils.py
--- old/testfixtures-6.14.1/testfixtures/utils.py 2020-04-20
14:27:37.000000000 +0200
+++ new/testfixtures-6.14.2/testfixtures/utils.py 2020-09-04
19:48:19.000000000 +0200
@@ -68,7 +68,7 @@
to_add = len(getargspec(func).args[len(args):])
added = 0
- exc_info = tuple()
+ exc_info = (None, None, None)
try:
for patching in patched.patchings:
arg = patching.__enter__()
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/testfixtures-6.14.1/testfixtures/version.txt
new/testfixtures-6.14.2/testfixtures/version.txt
--- old/testfixtures-6.14.1/testfixtures/version.txt 2020-04-20
14:27:37.000000000 +0200
+++ new/testfixtures-6.14.2/testfixtures/version.txt 2020-09-04
19:48:19.000000000 +0200
@@ -1 +1 @@
-6.14.1
+6.14.2
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/testfixtures-6.14.1/testfixtures.egg-info/PKG-INFO
new/testfixtures-6.14.2/testfixtures.egg-info/PKG-INFO
--- old/testfixtures-6.14.1/testfixtures.egg-info/PKG-INFO 2020-04-20
14:27:41.000000000 +0200
+++ new/testfixtures-6.14.2/testfixtures.egg-info/PKG-INFO 2020-09-04
19:48:23.000000000 +0200
@@ -1,6 +1,6 @@
Metadata-Version: 2.1
Name: testfixtures
-Version: 6.14.1
+Version: 6.14.2
Summary: A collection of helpers and mock objects for unit tests and doc tests.
Home-page: https://github.com/Simplistix/testfixtures
Author: Chris Withers