Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-testfixtures for
openSUSE:Factory checked in at 2021-05-12 19:31:20
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-testfixtures (Old)
and /work/SRC/openSUSE:Factory/.python-testfixtures.new.2988 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-testfixtures"
Wed May 12 19:31:20 2021 rev:18 rq:891895 version:6.17.1
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-testfixtures/python-testfixtures.changes
2021-04-29 22:44:56.704153700 +0200
+++
/work/SRC/openSUSE:Factory/.python-testfixtures.new.2988/python-testfixtures.changes
2021-05-12 19:31:28.479222736 +0200
@@ -1,0 +2,7 @@
+Sun May 9 17:11:41 UTC 2021 - Dirk M??ller <[email protected]>
+
+- update to 6.17.1
+ - Fix bug where bug where duplicated entries in an ordered but partial
+ :class:`SequenceComparison` could result in a failed match.
+
+-------------------------------------------------------------------
Old:
----
testfixtures-6.17.0.tar.gz
New:
----
testfixtures-6.17.1.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-testfixtures.spec ++++++
--- /var/tmp/diff_new_pack.hLGvBm/_old 2021-05-12 19:31:29.135219822 +0200
+++ /var/tmp/diff_new_pack.hLGvBm/_new 2021-05-12 19:31:29.139219804 +0200
@@ -19,7 +19,7 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%bcond_without python2
Name: python-testfixtures
-Version: 6.17.0
+Version: 6.17.1
Release: 0
Summary: A collection of helpers and mock objects for unit tests and
doc tests
License: MIT
++++++ testfixtures-6.17.0.tar.gz -> testfixtures-6.17.1.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/testfixtures-6.17.0/CHANGELOG.rst
new/testfixtures-6.17.1/CHANGELOG.rst
--- old/testfixtures-6.17.0/CHANGELOG.rst 2020-12-16 10:11:04.000000000
+0100
+++ new/testfixtures-6.17.1/CHANGELOG.rst 2021-01-14 09:34:46.000000000
+0100
@@ -1,6 +1,12 @@
Changes
=======
+6.17.1 (14 Jan 2020)
+--------------------
+
+- Fix bug where bug where duplicated entries in an ordered but partial
+ :class:`SequenceComparison` could result in a failed match.
+
6.17.0 (16 Dec 2020)
--------------------
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/testfixtures-6.17.0/PKG-INFO
new/testfixtures-6.17.1/PKG-INFO
--- old/testfixtures-6.17.0/PKG-INFO 2020-12-16 10:11:10.000000000 +0100
+++ new/testfixtures-6.17.1/PKG-INFO 2021-01-14 09:34:53.000000000 +0100
@@ -1,6 +1,6 @@
Metadata-Version: 2.1
Name: testfixtures
-Version: 6.17.0
+Version: 6.17.1
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.17.0/testfixtures/comparison.py
new/testfixtures-6.17.1/testfixtures/comparison.py
--- old/testfixtures-6.17.0/testfixtures/comparison.py 2020-12-16
10:11:04.000000000 +0100
+++ new/testfixtures-6.17.1/testfixtures/comparison.py 2021-01-14
09:34:46.000000000 +0100
@@ -886,9 +886,10 @@
missing_from_actual = []
missing_from_actual_indices = []
+ start = 0
for e_i, e in enumerate(expected):
try:
- i = actual.index(e)
+ i = actual.index(e, start)
a_i = actual_indices.pop(i)
except ValueError:
missing_from_actual.append(e)
@@ -898,6 +899,8 @@
matched_expected_indices.append(e_i)
matched_actual_indices.append(a_i)
self.checked_indices.add(a_i)
+ if self.ordered:
+ start = i
matches_in_order = matched_actual_indices ==
sorted(matched_actual_indices)
all_matched = not (missing_from_actual or missing_from_expected)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/testfixtures-6.17.0/testfixtures/tests/test_logcapture.py
new/testfixtures-6.17.1/testfixtures/tests/test_logcapture.py
--- old/testfixtures-6.17.0/testfixtures/tests/test_logcapture.py
2020-12-16 10:11:04.000000000 +0100
+++ new/testfixtures-6.17.1/testfixtures/tests/test_logcapture.py
2021-01-14 09:34:46.000000000 +0100
@@ -408,16 +408,16 @@
root.error('j2')
with ShouldAssert(dedent("""\
ignored:
- [('root', 'ERROR', 'j1'), ('root', 'ERROR', 'j2')]
+ [('root', 'ERROR', 'j1'), ('root', 'ERROR', 'three'), ('root',
'ERROR', 'j2')]
same:
- [('root', 'INFO', 'one')]
+ [('root', 'INFO', 'one'), ('root', 'WARNING', 'two')]
expected:
- [('root', 'WARNING', 'two'), ('root', 'ERROR', 'three')]
+ [('root', 'ERROR', 'three')]
actual:
- [('root', 'ERROR', 'three'), ('root', 'WARNING', 'two')]""")):
+ []""")):
log.check_present(
('root', 'INFO', 'one'),
('root', 'WARNING', 'two'),
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/testfixtures-6.17.0/testfixtures/tests/test_sequencecomparison.py
new/testfixtures-6.17.1/testfixtures/tests/test_sequencecomparison.py
--- old/testfixtures-6.17.0/testfixtures/tests/test_sequencecomparison.py
2020-12-16 10:11:04.000000000 +0100
+++ new/testfixtures-6.17.1/testfixtures/tests/test_sequencecomparison.py
2021-01-14 09:34:46.000000000 +0100
@@ -46,6 +46,10 @@
s = SequenceComparison(1, 2, ordered=False, partial=True)
assert s == (2, 1, 4)
+ def test_equal_partial_ordered(self):
+ s = SequenceComparison(1, 2, 1, ordered=True, partial=True)
+ assert s == (1, 1, 2, 1)
+
def test_equal_ordered_duplicates(self):
s = SequenceComparison(1, 2, 2, ordered=True, partial=True)
assert s == (1, 2, 2, 3)
@@ -141,12 +145,14 @@
compare(repr(s), expected=(
'\n'
'<SequenceComparison(ordered=True, partial=True)(failed)>\n'
+ 'ignored:\n'
+ '[4]\n\n'
'same:\n'
'[]\n\n'
'expected:\n'
'[1, 2]\n\n'
'actual:\n'
- '[2, 1, 4]\n'
+ '[2, 1]\n'
'</SequenceComparison(ordered=True, partial=True)>'
))
@@ -172,13 +178,13 @@
'\n'
'<SequenceComparison(ordered=True, partial=True)(failed)>\n'
'ignored:\n'
- '[4]\n\n'
+ '[2, 4]\n\n'
'same:\n'
- "['a', 'b']\n\n"
+ "['a', 'b', 1]\n\n"
'expected:\n'
- '[1, 2]\n\n'
+ '[2]\n\n'
'actual:\n'
- '[2, 1]\n'
+ '[]\n'
'</SequenceComparison(ordered=True, partial=True)>'
))
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/testfixtures-6.17.0/testfixtures/version.txt
new/testfixtures-6.17.1/testfixtures/version.txt
--- old/testfixtures-6.17.0/testfixtures/version.txt 2020-12-16
10:11:04.000000000 +0100
+++ new/testfixtures-6.17.1/testfixtures/version.txt 2021-01-14
09:34:46.000000000 +0100
@@ -1 +1 @@
-6.17.0
+6.17.1
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/testfixtures-6.17.0/testfixtures.egg-info/PKG-INFO
new/testfixtures-6.17.1/testfixtures.egg-info/PKG-INFO
--- old/testfixtures-6.17.0/testfixtures.egg-info/PKG-INFO 2020-12-16
10:11:09.000000000 +0100
+++ new/testfixtures-6.17.1/testfixtures.egg-info/PKG-INFO 2021-01-14
09:34:53.000000000 +0100
@@ -1,6 +1,6 @@
Metadata-Version: 2.1
Name: testfixtures
-Version: 6.17.0
+Version: 6.17.1
Summary: A collection of helpers and mock objects for unit tests and doc tests.
Home-page: https://github.com/Simplistix/testfixtures
Author: Chris Withers