commit python-testfixtures for openSUSE:Factory
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 + +- 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.0 +0200 +++ new/testfixtures-6.14.2/CHANGELOG.rst 2020-09-04 19:48:19.0 +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-INFO2020-04-20 14:27:41.0 +0200 +++ new/testfixtures-6.14.2/PKG-INFO2020-09-04 19:48:23.0 +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.0 +0200 +++ new/testfixtures-6.14.2/docs/datetime.txt 2020-09-04 19:48:19.0 +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:`~t
commit python-testfixtures for openSUSE:Factory
Hello community, here is the log from the commit of package python-testfixtures for openSUSE:Factory checked in at 2020-06-26 21:43:58 Comparing /work/SRC/openSUSE:Factory/python-testfixtures (Old) and /work/SRC/openSUSE:Factory/.python-testfixtures.new.3060 (New) Package is "python-testfixtures" Fri Jun 26 21:43:58 2020 rev:13 rq:816634 version:6.14.1 Changes: --- /work/SRC/openSUSE:Factory/python-testfixtures/python-testfixtures.changes 2020-05-20 18:36:23.224095502 +0200 +++ /work/SRC/openSUSE:Factory/.python-testfixtures.new.3060/python-testfixtures.changes 2020-06-26 21:44:00.213554552 +0200 @@ -1,0 +2,6 @@ +Tue Jun 23 15:51:53 UTC 2020 - Benjamin Greiner + +- use local source dir for pytest imports (tests are not installed) + gh#openSUSE/python-rpm-macros#48 + +--- Other differences: -- ++ python-testfixtures.spec ++ --- /var/tmp/diff_new_pack.7OP3TI/_old 2020-06-26 21:44:00.825556511 +0200 +++ /var/tmp/diff_new_pack.7OP3TI/_new 2020-06-26 21:44:00.829556524 +0200 @@ -71,6 +71,7 @@ %check export DJANGO_SETTINGS_MODULE=testfixtures.tests.test_django.settings +export PYTHONPATH=$(pwd) %pytest testfixtures/tests %files %{python_files}
commit python-testfixtures for openSUSE:Factory
Hello community, here is the log from the commit of package python-testfixtures for openSUSE:Factory checked in at 2020-05-20 18:36:19 Comparing /work/SRC/openSUSE:Factory/python-testfixtures (Old) and /work/SRC/openSUSE:Factory/.python-testfixtures.new.2738 (New) Package is "python-testfixtures" Wed May 20 18:36:19 2020 rev:12 rq:807182 version:6.14.1 Changes: --- /work/SRC/openSUSE:Factory/python-testfixtures/python-testfixtures.changes 2020-03-27 00:21:40.156146535 +0100 +++ /work/SRC/openSUSE:Factory/.python-testfixtures.new.2738/python-testfixtures.changes 2020-05-20 18:36:23.224095502 +0200 @@ -1,0 +2,8 @@ +Tue May 19 10:20:08 UTC 2020 - Tomáš Chvátal + +- Add patch to fix build with python 3.8.3: + * python383.patch +- Update to 6.14.1: + * Fix bugs in comparison of :func:`~unittest.mock.call` objects where the :func:`repr` of the :func:`~unittest.mock.call` arguments were the same even when their attributes were not. + +--- Old: testfixtures-6.14.0.tar.gz New: python383.patch testfixtures-6.14.1.tar.gz Other differences: -- ++ python-testfixtures.spec ++ --- /var/tmp/diff_new_pack.hobDIO/_old 2020-05-20 18:36:24.248097649 +0200 +++ /var/tmp/diff_new_pack.hobDIO/_new 2020-05-20 18:36:24.252097657 +0200 @@ -19,13 +19,13 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} %bcond_without python2 Name: python-testfixtures -Version:6.14.0 +Version:6.14.1 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 -# Test case dependencies +Patch0: python383.patch BuildRequires: %{python_module Django} BuildRequires: %{python_module Twisted} BuildRequires: %{python_module pytest >= 3.6} @@ -58,6 +58,7 @@ %prep %setup -q -n testfixtures-%{version} +%patch0 -p1 chmod a-x docs/*.txt %build ++ python383.patch ++ >From 9684e9816c39377f5cc08819dee711b2255fb2d3 Mon Sep 17 00:00:00 2001 From: Chris Withers Date: Sun, 17 May 2020 08:01:57 +0100 Subject: [PATCH] fix for python 3.8.3 --- testfixtures/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testfixtures/utils.py b/testfixtures/utils.py index 9584db3..00aa9da 100644 --- a/testfixtures/utils.py +++ b/testfixtures/utils.py @@ -68,7 +68,7 @@ def patched(*args, **keywargs): 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__() ++ testfixtures-6.14.0.tar.gz -> testfixtures-6.14.1.tar.gz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/testfixtures-6.14.0/CHANGELOG.rst new/testfixtures-6.14.1/CHANGELOG.rst --- old/testfixtures-6.14.0/CHANGELOG.rst 2020-02-24 16:21:42.0 +0100 +++ new/testfixtures-6.14.1/CHANGELOG.rst 2020-04-20 14:27:37.0 +0200 @@ -3,6 +3,12 @@ .. currentmodule:: testfixtures +6.14.1 (20 Apr 2020) + + +- Fix bugs in comparison of :func:`~unittest.mock.call` objects where the :func:`repr` of the + :func:`~unittest.mock.call` arguments were the same even when their attributes were not. + 6.14.0 (24 Feb 2020) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/testfixtures-6.14.0/LICENSE.txt new/testfixtures-6.14.1/LICENSE.txt --- old/testfixtures-6.14.0/LICENSE.txt 2020-02-24 16:21:42.0 +0100 +++ new/testfixtures-6.14.1/LICENSE.txt 2020-04-20 14:27:37.0 +0200 @@ -1,5 +1,5 @@ Copyright (c) 2008-2015 Simplistix Ltd -Copyright (c) 2015-2019 Chris Withers +Copyright (c) 2015-2020 Chris Withers Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/testfixtures-6.14.0/PKG-INFO new/testfixtures-6.14.1/PKG-INFO --- old/testfixtures-6.14.0/PKG-INFO2020-02-24 16:21:45.0 +0100 +++ new/testfixtures-6.14.1/PKG-INFO2020-04-20 14:27:41.0 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 2.1 Name: testfixtures -Version: 6.14.0 +Version: 6.14.1 Summary: A collection of helpers and mock objects for unit tests and doc tests. Home-page: https://github.com/Simplistix/t
commit python-testfixtures for openSUSE:Factory
Hello community, here is the log from the commit of package python-testfixtures for openSUSE:Factory checked in at 2020-03-27 00:21:36 Comparing /work/SRC/openSUSE:Factory/python-testfixtures (Old) and /work/SRC/openSUSE:Factory/.python-testfixtures.new.3160 (New) Package is "python-testfixtures" Fri Mar 27 00:21:36 2020 rev:11 rq:784177 version:6.14.0 Changes: --- /work/SRC/openSUSE:Factory/python-testfixtures/python-testfixtures.changes 2019-07-22 17:19:51.969903066 +0200 +++ /work/SRC/openSUSE:Factory/.python-testfixtures.new.3160/python-testfixtures.changes 2020-03-27 00:21:40.156146535 +0100 @@ -1,0 +2,49 @@ +Thu Mar 12 08:05:21 UTC 2020 - Tomáš Chvátal + +- Fix build without python2 + +--- +Wed Mar 11 12:16:59 UTC 2020 - pgaj...@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. + +--- Old: testfixtures-6.10.0.tar.gz New: testfixtures-6.14.0.tar.gz Other differences: -- ++ python-testfixtures.spec ++ --- /var/tmp/diff_new_pack.mQrO5Q/_old 2020-03-27 00:21:42.848147898 +0100 +++ /var/tmp/diff_new_pack.mQrO5Q/_new 2020-03-27 00:21:42.852147900 +0100 @@ -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:
commit python-testfixtures for openSUSE:Factory
Hello community, here is the log from the commit of package python-testfixtures for openSUSE:Factory checked in at 2019-07-22 17:19:50 Comparing /work/SRC/openSUSE:Factory/python-testfixtures (Old) and /work/SRC/openSUSE:Factory/.python-testfixtures.new.4126 (New) Package is "python-testfixtures" Mon Jul 22 17:19:50 2019 rev:10 rq:717575 version:6.10.0 Changes: --- /work/SRC/openSUSE:Factory/python-testfixtures/python-testfixtures.changes 2019-06-18 14:58:11.56496 +0200 +++ /work/SRC/openSUSE:Factory/.python-testfixtures.new.4126/python-testfixtures.changes 2019-07-22 17:19:51.969903066 +0200 @@ -1,0 +2,6 @@ +Mon Jul 22 12:42:25 UTC 2019 - Tomáš Chvátal + +- Update to 6.10.0: + * Better feedback where objects do not :func:`compare` equal but do have the same representation. + +--- Old: testfixtures-6.9.0.tar.gz New: testfixtures-6.10.0.tar.gz Other differences: -- ++ python-testfixtures.spec ++ --- /var/tmp/diff_new_pack.mokiGl/_old 2019-07-22 17:19:52.581902899 +0200 +++ /var/tmp/diff_new_pack.mokiGl/_new 2019-07-22 17:19:52.585902898 +0200 @@ -18,7 +18,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-testfixtures -Version:6.9.0 +Version:6.10.0 Release:0 Summary:A collection of helpers and mock objects for unit tests and doc tests License:MIT ++ testfixtures-6.9.0.tar.gz -> testfixtures-6.10.0.tar.gz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/testfixtures-6.9.0/CHANGELOG.rst new/testfixtures-6.10.0/CHANGELOG.rst --- old/testfixtures-6.9.0/CHANGELOG.rst2019-06-10 17:46:54.0 +0200 +++ new/testfixtures-6.10.0/CHANGELOG.rst 2019-06-19 08:07:46.0 +0200 @@ -3,6 +3,12 @@ .. currentmodule:: testfixtures +6.10.0 (19 Jun 2019) +--- + +- Better feedback where objects do not :func:`compare` equal but do have the same + representation. + 6.9.0 (10 Jun 2019) --- @@ -10,9 +16,9 @@ - Improve :doc:`mocking ` docs. -- Add ``strip_whitespace`` option to :class:`OutputCapture`. +- Added ``strip_whitespace`` option to :class:`OutputCapture`. -- When ``separate`` is used with :class:`OutputCapture`, differences in ``stdout` and ``stderr`` +- 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. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/testfixtures-6.9.0/PKG-INFO new/testfixtures-6.10.0/PKG-INFO --- old/testfixtures-6.9.0/PKG-INFO 2019-06-10 17:46:57.0 +0200 +++ new/testfixtures-6.10.0/PKG-INFO2019-06-19 08:07:50.0 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 2.1 Name: testfixtures -Version: 6.9.0 +Version: 6.10.0 Summary: A collection of helpers and mock objects for unit tests and doc tests. Home-page: https://github.com/Simplistix/testfixtures Author: Chris Withers @@ -75,6 +75,6 @@ Classifier: Programming Language :: Python :: 3 Classifier: Programming Language :: Python :: 3.6 Classifier: Programming Language :: Python :: 3.7 +Provides-Extra: test Provides-Extra: docs Provides-Extra: build -Provides-Extra: test diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/testfixtures-6.9.0/testfixtures/comparison.py new/testfixtures-6.10.0/testfixtures/comparison.py --- old/testfixtures-6.9.0/testfixtures/comparison.py 2019-06-10 17:46:54.0 +0200 +++ new/testfixtures-6.10.0/testfixtures/comparison.py 2019-06-19 08:07:46.0 +0200 @@ -16,7 +16,19 @@ Returns a very simple textual difference between the two supplied objects. """ if x != y: -return context.label('x', repr(x)) + ' != ' + context.label('y', repr(y)) +repr_x = repr(x) +repr_y = repr(y) +if repr_x == repr_y: +x_attrs = _extract_attrs(x) +y_attrs = _extract_attrs(y) +diff = _compare_mapping(x_attrs, y_attrs, context, x, +'attributes ', '.%s') +if not diff: +return 'Both %s and %s appear as %r, but are not equal!' % ( +context.x_label or 'x', context.y_label or 'y', repr_x +) +return diff +return context.label('x', repr_x) + ' != ' + context.label('y', repr_y) def _extract_attrs(obj, ignore=None): diff -urN '--exclude=CVS' '--exclude=.cvsignore' '
commit python-testfixtures for openSUSE:Factory
Hello community, here is the log from the commit of package python-testfixtures for openSUSE:Factory checked in at 2019-06-18 14:57:59 Comparing /work/SRC/openSUSE:Factory/python-testfixtures (Old) and /work/SRC/openSUSE:Factory/.python-testfixtures.new.4811 (New) Package is "python-testfixtures" Tue Jun 18 14:57:59 2019 rev:9 rq:710324 version:6.9.0 Changes: --- /work/SRC/openSUSE:Factory/python-testfixtures/python-testfixtures.changes 2019-05-22 11:15:33.594539011 +0200 +++ /work/SRC/openSUSE:Factory/.python-testfixtures.new.4811/python-testfixtures.changes 2019-06-18 14:58:11.56496 +0200 @@ -1,0 +2,13 @@ +Mon Jun 17 10:12:42 UTC 2019 - pgaj...@suse.com + +- version update to 6.9.0 + - Fix deprecation warning relating to :func:`getargspec`. + - Improve :doc:`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. + +--- Old: testfixtures-6.8.2.tar.gz New: testfixtures-6.9.0.tar.gz Other differences: -- ++ python-testfixtures.spec ++ --- /var/tmp/diff_new_pack.CCLKQ3/_old 2019-06-18 14:58:12.153336140 +0200 +++ /var/tmp/diff_new_pack.CCLKQ3/_new 2019-06-18 14:58:12.161336135 +0200 @@ -18,7 +18,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-testfixtures -Version:6.8.2 +Version:6.9.0 Release:0 Summary:A collection of helpers and mock objects for unit tests and doc tests License:MIT ++ testfixtures-6.8.2.tar.gz -> testfixtures-6.9.0.tar.gz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/testfixtures-6.8.2/CHANGELOG.rst new/testfixtures-6.9.0/CHANGELOG.rst --- old/testfixtures-6.8.2/CHANGELOG.rst2019-05-04 14:44:51.0 +0200 +++ new/testfixtures-6.9.0/CHANGELOG.rst2019-06-10 17:46:54.0 +0200 @@ -3,6 +3,27 @@ .. currentmodule:: testfixtures +6.9.0 (10 Jun 2019) +--- + +- Fix deprecation warning relating to :func:`getargspec`. + +- Improve :doc:`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. + +Thanks to Łukasz Rogalski for the deprecation warning fix. + +Thanks to Wim Glenn for the :class:`ShouldRaise` idea. + 6.8.2 (4 May 2019) -- diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/testfixtures-6.8.2/PKG-INFO new/testfixtures-6.9.0/PKG-INFO --- old/testfixtures-6.8.2/PKG-INFO 2019-05-04 14:44:54.0 +0200 +++ new/testfixtures-6.9.0/PKG-INFO 2019-06-10 17:46:57.0 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 2.1 Name: testfixtures -Version: 6.8.2 +Version: 6.9.0 Summary: A collection of helpers and mock objects for unit tests and doc tests. Home-page: https://github.com/Simplistix/testfixtures Author: Chris Withers @@ -75,6 +75,6 @@ Classifier: Programming Language :: Python :: 3 Classifier: Programming Language :: Python :: 3.6 Classifier: Programming Language :: Python :: 3.7 -Provides-Extra: test Provides-Extra: docs Provides-Extra: build +Provides-Extra: test diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/testfixtures-6.8.2/docs/mocking.txt new/testfixtures-6.9.0/docs/mocking.txt --- old/testfixtures-6.8.2/docs/mocking.txt 2019-05-04 14:44:51.0 +0200 +++ new/testfixtures-6.9.0/docs/mocking.txt 2019-06-10 17:46:54.0 +0200 @@ -1,14 +1,19 @@ Mocking out objects and methods === -Mocking is the process of replacing chunks of complex functionality +.. py:currentmodule:: testfixtures + +Mocking is the process of replacing objects used in your code with ones +that make testing easier, but only while the tests are running. + +This may mean replacing resources or dependencies, such as database +connections or file paths, with
commit python-testfixtures for openSUSE:Factory
Hello community, here is the log from the commit of package python-testfixtures for openSUSE:Factory checked in at 2019-05-22 11:15:33 Comparing /work/SRC/openSUSE:Factory/python-testfixtures (Old) and /work/SRC/openSUSE:Factory/.python-testfixtures.new.5148 (New) Package is "python-testfixtures" Wed May 22 11:15:33 2019 rev:8 rq:704380 version:6.8.2 Changes: --- /work/SRC/openSUSE:Factory/python-testfixtures/python-testfixtures.changes 2019-04-22 12:26:24.628961347 +0200 +++ /work/SRC/openSUSE:Factory/.python-testfixtures.new.5148/python-testfixtures.changes 2019-05-22 11:15:33.594539011 +0200 @@ -1,0 +2,11 @@ +Tue May 21 08:14:30 UTC 2019 - pgaj...@suse.com + +- version update to 6.8.2 + * Fix handling of the latest releases of the :mod:`mock` backport. + * Fix bogus import in :class:`OutputCapture`. + * Allow :class:`OutputCapture` to capture the underlying file descriptors for +:attr:`sys.stdout` and :attr:`sys.stderr`. + * Silence :class:`DeprecationWarning` relating to ``collections.abc`` on +Python 3.7. + +--- Old: testfixtures-6.7.0.tar.gz New: testfixtures-6.8.2.tar.gz Other differences: -- ++ python-testfixtures.spec ++ --- /var/tmp/diff_new_pack.NeTDqm/_old 2019-05-22 11:15:34.214538897 +0200 +++ /var/tmp/diff_new_pack.NeTDqm/_new 2019-05-22 11:15:34.218538896 +0200 @@ -18,7 +18,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-testfixtures -Version:6.7.0 +Version:6.8.2 Release:0 Summary:A collection of helpers and mock objects for unit tests and doc tests License:MIT ++ testfixtures-6.7.0.tar.gz -> testfixtures-6.8.2.tar.gz ++ 2737 lines of diff (skipped)
commit python-testfixtures for openSUSE:Factory
Hello community, here is the log from the commit of package python-testfixtures for openSUSE:Factory checked in at 2019-04-22 12:26:23 Comparing /work/SRC/openSUSE:Factory/python-testfixtures (Old) and /work/SRC/openSUSE:Factory/.python-testfixtures.new.5536 (New) Package is "python-testfixtures" Mon Apr 22 12:26:23 2019 rev:7 rq:696466 version:6.7.0 Changes: --- /work/SRC/openSUSE:Factory/python-testfixtures/python-testfixtures.changes 2019-03-29 20:42:36.950678340 +0100 +++ /work/SRC/openSUSE:Factory/.python-testfixtures.new.5536/python-testfixtures.changes 2019-04-22 12:26:24.628961347 +0200 @@ -1,0 +2,7 @@ +Thu Apr 18 14:41:23 UTC 2019 - Marketa Calabkova + +- update to version 6.7.0 + * Add :meth:`twisted.LogCapture.raise_logged_failure` debugging +helper. + +--- Old: testfixtures-6.6.2.tar.gz New: testfixtures-6.7.0.tar.gz Other differences: -- ++ python-testfixtures.spec ++ --- /var/tmp/diff_new_pack.nc3rDp/_old 2019-04-22 12:26:25.156961141 +0200 +++ /var/tmp/diff_new_pack.nc3rDp/_new 2019-04-22 12:26:25.156961141 +0200 @@ -18,7 +18,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-testfixtures -Version:6.6.2 +Version:6.7.0 Release:0 Summary:A collection of helpers and mock objects for unit tests and doc tests License:MIT ++ testfixtures-6.6.2.tar.gz -> testfixtures-6.7.0.tar.gz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/testfixtures-6.6.2/PKG-INFO new/testfixtures-6.7.0/PKG-INFO --- old/testfixtures-6.6.2/PKG-INFO 2019-03-22 08:47:36.0 +0100 +++ new/testfixtures-6.7.0/PKG-INFO 2019-04-11 08:03:41.0 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 2.1 Name: testfixtures -Version: 6.6.2 +Version: 6.7.0 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.6.2/docs/changes.txt new/testfixtures-6.7.0/docs/changes.txt --- old/testfixtures-6.6.2/docs/changes.txt 2019-03-22 08:47:24.0 +0100 +++ new/testfixtures-6.7.0/docs/changes.txt 2019-04-11 08:03:27.0 +0200 @@ -3,6 +3,11 @@ .. currentmodule:: testfixtures +6.7.0 (11 Apr 2019) +--- + +- Add :meth:`twisted.LogCapture.raise_logged_failure` debugging helper. + 6.6.2 (22 Mar 2019) --- diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/testfixtures-6.6.2/testfixtures/tests/test_twisted.py new/testfixtures-6.7.0/testfixtures/tests/test_twisted.py --- old/testfixtures-6.6.2/testfixtures/tests/test_twisted.py 2019-03-22 08:47:24.0 +0100 +++ new/testfixtures-6.7.0/testfixtures/tests/test_twisted.py 2019-04-11 08:03:27.0 +0200 @@ -1,7 +1,8 @@ from twisted.logger import Logger, formatEvent +from twisted.python.failure import Failure from twisted.trial.unittest import TestCase -from testfixtures import compare +from testfixtures import compare, ShouldRaise from testfixtures.twisted import LogCapture, INFO log = Logger() @@ -52,3 +53,30 @@ log.info("don't look at me...") capture.check_failure_text(str(TypeError), index=0, attribute='type') self.flushLoggedErrors() +self.flushLoggedErrors() + +def test_raise_logged_failure(self): +capture = LogCapture.make(self) +try: +raise TypeError('all gone wrong') +except: +log.failure('oh dear') +with ShouldRaise(Failure) as s: +capture.raise_logged_failure() +compare(s.raised.value, expected=TypeError('all gone wrong')) +self.flushLoggedErrors() + +def test_raise_later_logged_failure(self): +capture = LogCapture.make(self) +try: +raise ValueError('boom!') +except: +log.failure('oh dear') +try: +raise TypeError('all gone wrong') +except: +log.failure('what now?!') +with ShouldRaise(Failure) as s: +capture.raise_logged_failure(start_index=1) +compare(s.raised.value, expected=TypeError('all gone wrong')) +self.flushLoggedErrors() diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/testfixtures-6.6.2/testfixtures/twisted.py new/testfixtures-6.7.0/testfixtures/twisted.py --- old/testfixtures-6.6.2/testfixtures/twisted.py 2019-03-22 08:47:24.0 +01
commit python-testfixtures for openSUSE:Factory
Hello community, here is the log from the commit of package python-testfixtures for openSUSE:Factory checked in at 2019-03-29 20:42:35 Comparing /work/SRC/openSUSE:Factory/python-testfixtures (Old) and /work/SRC/openSUSE:Factory/.python-testfixtures.new.25356 (New) Package is "python-testfixtures" Fri Mar 29 20:42:35 2019 rev:6 rq:689260 version:6.6.2 Changes: --- /work/SRC/openSUSE:Factory/python-testfixtures/python-testfixtures.changes 2019-02-27 17:27:57.935346241 +0100 +++ /work/SRC/openSUSE:Factory/.python-testfixtures.new.25356/python-testfixtures.changes 2019-03-29 20:42:36.950678340 +0100 @@ -1,0 +2,26 @@ +Tue Mar 26 22:09:06 UTC 2019 - John Vandenberg + +- Add docs/*.txt to %docs +- Remove tests from the runtime package +- Update to v6.6.2 + * popen.MockPopen.set_command is now symmetrical with +popen.MockPopen process instantiation in that both can be called with +either lists or strings, in the same way as subprocess.Popen. +- from 6.6.1 + * Fixed bugs where using 'not_there' to ensure a key or attribute +was not there but would be set by a test would result in the test +attribute or key being left behind. + * Add support for comparing functools.partial instances and fix +comparison of functions and other objects where vars() returns +an empty dict. +- from v6.6.0 + * Add the ability to ignore attributes of particular object types when +using `compare`. +- from v6.5.2 + * Fix bug when `compare` was used with objects that had __slots__ inherited +from a base class but where their __slots__ was an empty sequence. +- from v6.5.1 + * Fix bug when `compare` was used with objects that had __slots__ inherited +from a base class. + +--- Old: testfixtures-6.5.0.tar.gz New: testfixtures-6.6.2.tar.gz Other differences: -- ++ python-testfixtures.spec ++ --- /var/tmp/diff_new_pack.v91Bb3/_old 2019-03-29 20:42:37.942678309 +0100 +++ /var/tmp/diff_new_pack.v91Bb3/_new 2019-03-29 20:42:37.946678309 +0100 @@ -18,7 +18,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-testfixtures -Version:6.5.0 +Version:6.6.2 Release:0 Summary:A collection of helpers and mock objects for unit tests and doc tests License:MIT @@ -56,13 +56,14 @@ %prep %setup -q -n testfixtures-%{version} -cp docs/changes.txt changes.txt +chmod a-x docs/*.txt %build %python_build %install %python_install +%python_expand rm -r %{buildroot}%{$python_sitelib}/testfixtures/tests %python_expand %fdupes %{buildroot}%{$python_sitelib} %check @@ -71,7 +72,7 @@ %files %{python_files} %license LICENSE.txt -%doc README.rst changes.txt +%doc README.rst docs/*.txt %{python_sitelib}/* %changelog ++ testfixtures-6.5.0.tar.gz -> testfixtures-6.6.2.tar.gz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/testfixtures-6.5.0/.carthorse.yml new/testfixtures-6.6.2/.carthorse.yml --- old/testfixtures-6.5.0/.carthorse.yml 1970-01-01 01:00:00.0 +0100 +++ new/testfixtures-6.6.2/.carthorse.yml 2019-03-22 08:47:24.0 +0100 @@ -0,0 +1,10 @@ +carthorse: + version-from: setup.py + tag-format: "{version}" + when: +- version-not-tagged + actions: +- run: "sudo pip install -e .[build]" +- run: "sudo python setup.py sdist bdist_wheel" +- run: "twine upload -u chrisw -p $PYPI_PASS dist/*" +- create-tag diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/testfixtures-6.5.0/.circleci/config.yml new/testfixtures-6.6.2/.circleci/config.yml --- old/testfixtures-6.5.0/.circleci/config.yml 1970-01-01 01:00:00.0 +0100 +++ new/testfixtures-6.6.2/.circleci/config.yml 2019-03-22 08:47:24.0 +0100 @@ -0,0 +1,77 @@ +version: 2.1 + +orbs: + python: cjw296/python-ci@1.1 + +common: &common + jobs: +- python/pip-run-tests: +name: python27 +image: circleci/python:2.7 +- python/pip-run-tests: +name: python36 +image: circleci/python:3.6 +- python/pip-run-tests: +name: python37 +image: circleci/python:3.7 +- python/pip-run-tests: +name: python36-mock-backport +image: circleci/python:3.6 +extra_packages: "mock" +- python/pip-run-tests: +name: python37-mock-backport +image: circleci/python:3.7 +extra_packages: "mock" +- python/pip-run-tests: +name: python27-django-1-9 +image: circleci/python:2.7 +extra_packages: "'django<1.10'" +- python/pip-run-tests: +name: python36-djang
commit python-testfixtures for openSUSE:Factory
Hello community, here is the log from the commit of package python-testfixtures for openSUSE:Factory checked in at 2019-02-27 17:27:54 Comparing /work/SRC/openSUSE:Factory/python-testfixtures (Old) and /work/SRC/openSUSE:Factory/.python-testfixtures.new.28833 (New) Package is "python-testfixtures" Wed Feb 27 17:27:54 2019 rev:5 rq:674881 version:6.5.0 Changes: --- /work/SRC/openSUSE:Factory/python-testfixtures/python-testfixtures.changes 2019-02-06 15:48:13.395229923 +0100 +++ /work/SRC/openSUSE:Factory/.python-testfixtures.new.28833/python-testfixtures.changes 2019-02-27 17:27:57.935346241 +0100 @@ -1,0 +2,9 @@ +Wed Feb 13 17:52:51 UTC 2019 - John Vandenberg + +- Update to version 6.5.0 + See changes.rst for list of changes since version 5.3.1 +- Remove many unnecessary build dependencies +- Activate tests +- Add Suggests for Django, Twisted, sybil and zope.component + +--- Old: testfixtures-5.3.1.tar.gz New: testfixtures-6.5.0.tar.gz Other differences: -- ++ python-testfixtures.spec ++ --- /var/tmp/diff_new_pack.aMl0OH/_old 2019-02-27 17:27:58.943345880 +0100 +++ /var/tmp/diff_new_pack.aMl0OH/_new 2019-02-27 17:27:58.947345878 +0100 @@ -17,35 +17,30 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} -# Test is disabled. It fails. -%bcond_with test Name: python-testfixtures -Version:5.3.1 +Version:6.5.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 -BuildArch: noarch -%if %{with test} -BuildRequires: %{python_module Sphinx} -BuildRequires: %{python_module coverage} -BuildRequires: %{python_module coveralls} -BuildRequires: %{python_module django-core} -BuildRequires: %{python_module django-nose} -BuildRequires: %{python_module django} -BuildRequires: %{python_module mock} -BuildRequires: %{python_module pyOpenSSL} +BuildRequires: python2-mock +# Test case dependencies +BuildRequires: %{python_module Django} +BuildRequires: %{python_module Twisted} BuildRequires: %{python_module pytest-django} -BuildRequires: %{python_module pytest} BuildRequires: %{python_module sybil} -BuildRequires: %{python_module virtualenv} BuildRequires: %{python_module zope.component} -%endif +Suggests: python-Django +Suggests: python-Twisted +Suggests: python-sybil +Suggests: python-zope.component +BuildArch: noarch %python_subpackages %description @@ -61,6 +56,7 @@ %prep %setup -q -n testfixtures-%{version} +cp docs/changes.txt changes.txt %build %python_build @@ -69,14 +65,13 @@ %python_install %python_expand %fdupes %{buildroot}%{$python_sitelib} -%if %{with test} %check -%python_exec setup.py test -%endif +export DJANGO_SETTINGS_MODULE=testfixtures.tests.test_django.settings +%python_expand $python -m pytest testfixtures/tests %files %{python_files} %license LICENSE.txt -%doc README.rst +%doc README.rst changes.txt %{python_sitelib}/* %changelog ++ testfixtures-5.3.1.tar.gz -> testfixtures-6.5.0.tar.gz ++ 5416 lines of diff (skipped)
commit python-testfixtures for openSUSE:Factory
Hello community, here is the log from the commit of package python-testfixtures for openSUSE:Factory checked in at 2019-02-06 15:48:13 Comparing /work/SRC/openSUSE:Factory/python-testfixtures (Old) and /work/SRC/openSUSE:Factory/.python-testfixtures.new.28833 (New) Package is "python-testfixtures" Wed Feb 6 15:48:13 2019 rev:4 rq:671951 version:5.3.1 Changes: --- /work/SRC/openSUSE:Factory/python-testfixtures/python-testfixtures.changes 2018-12-24 11:45:05.797255095 +0100 +++ /work/SRC/openSUSE:Factory/.python-testfixtures.new.28833/python-testfixtures.changes 2019-02-06 15:48:13.395229923 +0100 @@ -1,0 +2,5 @@ +Tue Feb 5 16:07:51 UTC 2019 - John Vandenberg + +- Remove unnecessary build dependencies + +--- Other differences: -- ++ python-testfixtures.spec ++ --- /var/tmp/diff_new_pack.7PCyOg/_old 2019-02-06 15:48:14.107229492 +0100 +++ /var/tmp/diff_new_pack.7PCyOg/_new 2019-02-06 15:48:14.107229492 +0100 @@ -1,7 +1,7 @@ # # spec file for package python-testfixtures # -# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -27,11 +27,7 @@ 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 pkginfo} -BuildRequires: %{python_module setuptools-git} BuildRequires: %{python_module setuptools} -BuildRequires: %{python_module twine} -BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros BuildArch: noarch
commit python-testfixtures for openSUSE:Factory
Hello community, here is the log from the commit of package python-testfixtures for openSUSE:Factory checked in at 2018-12-24 11:45:04 Comparing /work/SRC/openSUSE:Factory/python-testfixtures (Old) and /work/SRC/openSUSE:Factory/.python-testfixtures.new.28833 (New) Package is "python-testfixtures" Mon Dec 24 11:45:04 2018 rev:3 rq:659711 version:5.3.1 Changes: --- /work/SRC/openSUSE:Factory/python-testfixtures/python-testfixtures.changes 2018-01-06 18:51:09.793697586 +0100 +++ /work/SRC/openSUSE:Factory/.python-testfixtures.new.28833/python-testfixtures.changes 2018-12-24 11:45:05.797255095 +0100 @@ -1,0 +2,5 @@ +Tue Dec 4 12:55:09 UTC 2018 - Matej Cepl + +- Remove superfluous devel dependency for noarch package + +--- Other differences: -- ++ python-testfixtures.spec ++ --- /var/tmp/diff_new_pack.ruDutB/_old 2018-12-24 11:45:06.485254485 +0100 +++ /var/tmp/diff_new_pack.ruDutB/_new 2018-12-24 11:45:06.485254485 +0100 @@ -12,24 +12,21 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # %{?!python_module:%define python_module() python-%{**} python3-%{**}} - # Test is disabled. It fails. %bcond_with test - Name: python-testfixtures Version:5.3.1 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 +URL:https://github.com/Simplistix/testfixtures Source: https://files.pythonhosted.org/packages/source/t/testfixtures/testfixtures-%{version}.tar.gz -BuildRequires: %{python_module devel} BuildRequires: %{python_module pkginfo} BuildRequires: %{python_module setuptools-git} BuildRequires: %{python_module setuptools} @@ -37,6 +34,7 @@ BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros +BuildArch: noarch %if %{with test} BuildRequires: %{python_module Sphinx} BuildRequires: %{python_module coverage} @@ -52,8 +50,6 @@ BuildRequires: %{python_module virtualenv} BuildRequires: %{python_module zope.component} %endif -BuildArch: noarch - %python_subpackages %description @@ -83,8 +79,8 @@ %endif %files %{python_files} -%defattr(-,root,root,-) -%doc LICENSE.txt README.rst +%license LICENSE.txt +%doc README.rst %{python_sitelib}/* %changelog
commit python-testfixtures for openSUSE:Factory
Hello community, here is the log from the commit of package python-testfixtures for openSUSE:Factory checked in at 2018-01-06 18:50:58 Comparing /work/SRC/openSUSE:Factory/python-testfixtures (Old) and /work/SRC/openSUSE:Factory/.python-testfixtures.new (New) Package is "python-testfixtures" Sat Jan 6 18:50:58 2018 rev:2 rq:561827 version:5.3.1 Changes: --- /work/SRC/openSUSE:Factory/python-testfixtures/python-testfixtures.changes 2017-12-14 10:57:31.307503126 +0100 +++ /work/SRC/openSUSE:Factory/.python-testfixtures.new/python-testfixtures.changes 2018-01-06 18:51:09.793697586 +0100 @@ -1,0 +2,21 @@ +Fri Jan 5 09:58:02 UTC 2018 - alarr...@suse.com + +- Update to version 5.3.1 + * Fix missing support for the start_new_session parameter to +~testfixtures.popen.MockPopen. + +--- +Fri Nov 17 10:49:24 UTC 2017 - alarr...@suse.com + +- Update to version 5.3.0 + * Add pytest traceback hiding for TempDirectory.compare. + * Add warnings that log_capture, tempdir and replace are not +currently compatible with pytest's fixtures mechanism. + * Better support for stdout or stderr *not* being set to PIPE +when using testfixtures.popen.MockPopen. + * Add support to testfixtures.popen.MockPopen for +using subprocess.Popen as a context manager in Python 3. + * Add support to testfixtures.popen.MockPopen for stderr=STDOUT. + * Work done on testfixtures.popen.MockPopen. + +--- Old: testfixtures-5.2.0.tar.gz New: testfixtures-5.3.1.tar.gz Other differences: -- ++ python-testfixtures.spec ++ --- /var/tmp/diff_new_pack.6laNhP/_old 2018-01-06 18:51:12.537569379 +0100 +++ /var/tmp/diff_new_pack.6laNhP/_new 2018-01-06 18:51:12.541569192 +0100 @@ -1,7 +1,7 @@ # # spec file for package python-testfixtures # -# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -13,6 +13,7 @@ # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ +# %{?!python_module:%define python_module() python-%{**} python3-%{**}} @@ -21,35 +22,35 @@ %bcond_with test Name: python-testfixtures -Version:5.2.0 +Version:5.3.1 Release:0 -License:MIT Summary:A collection of helpers and mock objects for unit tests and doc tests -Url:https://github.com/Simplistix/testfixtures +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-rpm-macros BuildRequires: %{python_module devel} -BuildRequires: %{python_module setuptools} BuildRequires: %{python_module pkginfo} BuildRequires: %{python_module setuptools-git} -BuildRequires: %{python_module wheel} +BuildRequires: %{python_module setuptools} BuildRequires: %{python_module twine} +BuildRequires: %{python_module wheel} BuildRequires: fdupes +BuildRequires: python-rpm-macros %if %{with test} BuildRequires: %{python_module Sphinx} -BuildRequires: %{python_module virtualenv} -BuildRequires: %{python_module pyOpenSSL} -BuildRequires: %{python_module pytest} -BuildRequires: %{python_module mock} -BuildRequires: %{python_module sybil} BuildRequires: %{python_module coverage} BuildRequires: %{python_module coveralls} -BuildRequires: %{python_module zope.component} -BuildRequires: %{python_module django} BuildRequires: %{python_module django-core} BuildRequires: %{python_module django-nose} +BuildRequires: %{python_module django} +BuildRequires: %{python_module mock} +BuildRequires: %{python_module pyOpenSSL} BuildRequires: %{python_module pytest-django} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module sybil} +BuildRequires: %{python_module virtualenv} +BuildRequires: %{python_module zope.component} %endif BuildArch: noarch ++ testfixtures-5.2.0.tar.gz -> testfixtures-5.3.1.tar.gz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/testfixtures-5.2.0/.travis.yml new/testfixtures-5.3.1/.travis.yml --- old/testfixtures-5.2.0/.travis.yml 2017-09-03 23:33:10.0 +0200 +++ new/testfixtures-5.3.1/.travis.yml 2017-11-21 09:26:48.0 +0100 @@ -31,6 +31,7 @@ include: - stage: coverage + if: type !