Accepting request 637656 from devel:languages:python:pytest

- update to 3.8.1
- drop remove_mock.patch
 * .pytest_cache directory is now automatically ignored by Git
 * Fix the following error during collection of tests inside packages:
    'TypeError: object of type 'Package' has no len()'
 * Fix bug where indirect parametrization would consider the scope of all
     fixtures used by the test function to determine the parametrization scope,
     and not only the scope of the fixtures being parametrized.
 * Fix crash of the assertion rewriter if a test changed the current working
     directory without restoring it afterwards.
 * Fix issue that prevented some caplog properties (for example record_tuples)
     from being available when entering the debugger with --pdb.
 * Fix UnicodeDecodeError in python2.x when a class returns a non-ascii binary
     __repr__ in an assertion which also contains non-ascii text.

- update to 3.8.1
- drop remove_mock.patch
 * .pytest_cache directory is now automatically ignored by Git
 * Fix the following error during collection of tests inside packages:
    'TypeError: object of type 'Package' has no len()'
 * Fix bug where indirect parametrization would consider the scope of all
     fixtures used by the test function to determine the parametrization scope,
     and not only the scope of the fixtures being parametrized.
 * Fix crash of the assertion rewriter if a test changed the current working
     directory without restoring it afterwards.
 * Fix issue that prevented some caplog properties (for example record_tuples)
     from being available when entering the debugger with --pdb.
 * Fix UnicodeDecodeError in python2.x when a class returns a non-ascii binary
     __repr__ in an assertion which also contains non-ascii text. (forwarded request 637650 from mimi_vx)

OBS-URL: https://build.opensuse.org/request/show/637656
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pytest?expand=0&rev=41
This commit is contained in:
Dominique Leuenberger 2018-09-26 12:53:57 +00:00 committed by Git OBS Bridge
commit a346df12fc
6 changed files with 129 additions and 9 deletions

View File

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

3
pytest-3.8.1.tar.gz Normal file
View File

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

View File

@ -1,3 +1,66 @@
-------------------------------------------------------------------
Mon Sep 24 10:43:29 UTC 2018 - Ondřej Súkup <mimi.vx@gmail.com>
- update to 3.8.1
- drop remove_mock.patch
* .pytest_cache directory is now automatically ignored by Git
* Fix the following error during collection of tests inside packages:
'TypeError: object of type 'Package' has no len()'
* Fix bug where indirect parametrization would consider the scope of all
fixtures used by the test function to determine the parametrization scope,
and not only the scope of the fixtures being parametrized.
* Fix crash of the assertion rewriter if a test changed the current working
directory without restoring it afterwards.
* Fix issue that prevented some caplog properties (for example record_tuples)
from being available when entering the debugger with --pdb.
* Fix UnicodeDecodeError in python2.x when a class returns a non-ascii binary
__repr__ in an assertion which also contains non-ascii text.
-------------------------------------------------------------------
Mon Sep 17 09:39:03 UTC 2018 - Ondřej Súkup <mimi.vx@gmail.com>
- update to 3.8.0
* Config.warn has been deprecated, it should be replaced by calls
to the standard warnings.warn.
* Node.warn now supports two signatures:
+ node.warn(PytestWarning("some message")): is now the recommended way
to call this function. The warning instance must be a PytestWarning
or subclass instance.
+ node.warn("CI", "some message"): this code/message form is now deprecated
and should be converted to the warning instance form above.
* RemovedInPytest4Warning and PytestExperimentalApiWarning are now part
of the public API and should be accessed using pytest.RemovedInPytest4Warning
and pytest.PytestExperimentalApiWarning.
* @pytest.mark.filterwarnings second parameter is no longer regex-escaped,
making it possible to actually use regular expressions to check the warning message.
+ Note: regex-escaping the match string was an implementation oversight
that might break test suites which depend on the old behavior.
* Internal pytest warnings are now issued using the standard warnings module,
making it possible to use the standard warnings filters to manage those
warnings. This introduces PytestWarning, PytestDeprecationWarning
and RemovedInPytest4Warning warning types as part of the public API.
* DeprecationWarning and PendingDeprecationWarning are now shown by default
if no other warning filter is configured. This makes pytest more compliant
with PEP-0506. See the docs for more info.
* Warnings are now captured and displayed during test collection.
* PYTEST_DISABLE_PLUGIN_AUTOLOAD environment variable disables
plugin auto-loading when set.
* Added the count option to console_output_style to enable displaying
the progress as a count instead of a percentage.
* Added support for xfailed and xpassed outcomes
to the pytester.RunResult.assert_outcomes signature.
-------------------------------------------------------------------
Mon Sep 10 22:43:26 CEST 2018 - Matěj Cepl <mcepl@suse.com>
- Add remove_mock.patch which makes use of mock from PyPI
optional (all python 3 versions have unittest.mock these days)
-------------------------------------------------------------------
Tue Sep 4 16:12:26 UTC 2018 - Matěj Cepl <mcepl@suse.com>
- Clean up SPEC file.
-------------------------------------------------------------------
Tue Sep 4 12:55:25 UTC 2018 - Ondřej Súkup <mimi.vx@gmail.com>

View File

@ -12,13 +12,13 @@
# 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-%{**}}
Name: python-pytest-doc
Version: 3.7.4
Version: 3.8.1
Release: 0
Summary: Documentation for python-pytest, a testing tool with autodiscovery
License: MIT

View File

@ -1,3 +1,61 @@
-------------------------------------------------------------------
Mon Sep 24 10:43:29 UTC 2018 - Ondřej Súkup <mimi.vx@gmail.com>
- update to 3.8.1
- drop remove_mock.patch
* .pytest_cache directory is now automatically ignored by Git
* Fix the following error during collection of tests inside packages:
'TypeError: object of type 'Package' has no len()'
* Fix bug where indirect parametrization would consider the scope of all
fixtures used by the test function to determine the parametrization scope,
and not only the scope of the fixtures being parametrized.
* Fix crash of the assertion rewriter if a test changed the current working
directory without restoring it afterwards.
* Fix issue that prevented some caplog properties (for example record_tuples)
from being available when entering the debugger with --pdb.
* Fix UnicodeDecodeError in python2.x when a class returns a non-ascii binary
__repr__ in an assertion which also contains non-ascii text.
-------------------------------------------------------------------
Mon Sep 17 09:39:03 UTC 2018 - Ondřej Súkup <mimi.vx@gmail.com>
- update to 3.8.0
* Config.warn has been deprecated, it should be replaced by calls
to the standard warnings.warn.
* Node.warn now supports two signatures:
+ node.warn(PytestWarning("some message")): is now the recommended way
to call this function. The warning instance must be a PytestWarning
or subclass instance.
+ node.warn("CI", "some message"): this code/message form is now deprecated
and should be converted to the warning instance form above.
* RemovedInPytest4Warning and PytestExperimentalApiWarning are now part
of the public API and should be accessed using pytest.RemovedInPytest4Warning
and pytest.PytestExperimentalApiWarning.
* @pytest.mark.filterwarnings second parameter is no longer regex-escaped,
making it possible to actually use regular expressions to check the warning message.
+ Note: regex-escaping the match string was an implementation oversight
that might break test suites which depend on the old behavior.
* Internal pytest warnings are now issued using the standard warnings module,
making it possible to use the standard warnings filters to manage those
warnings. This introduces PytestWarning, PytestDeprecationWarning
and RemovedInPytest4Warning warning types as part of the public API.
* DeprecationWarning and PendingDeprecationWarning are now shown by default
if no other warning filter is configured. This makes pytest more compliant
with PEP-0506. See the docs for more info.
* Warnings are now captured and displayed during test collection.
* PYTEST_DISABLE_PLUGIN_AUTOLOAD environment variable disables
plugin auto-loading when set.
* Added the count option to console_output_style to enable displaying
the progress as a count instead of a percentage.
* Added support for xfailed and xpassed outcomes
to the pytester.RunResult.assert_outcomes signature.
-------------------------------------------------------------------
Tue Sep 4 16:10:55 UTC 2018 - Matěj Cepl <mcepl@suse.com>
- Remove unnecessary patch 0001-Use-unittest.mock-if-is-only-aviable.patch
(it has been already included in 3.7.4)
-------------------------------------------------------------------
Tue Sep 4 12:55:25 UTC 2018 - Ondřej Súkup <mimi.vx@gmail.com>

View File

@ -12,13 +12,13 @@
# 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-%{**}}
Name: python-pytest
Version: 3.7.4
Version: 3.8.1
Release: 0
Summary: Python testing tool with autodiscovery and detailed asserts
License: MIT
@ -41,10 +41,9 @@ BuildArch: noarch
%ifpython2
Requires: python-funcsigs
%endif
%if "%python_flavor" == "python2" || %python3_version_nodots < 36
%if "%{python_flavor}" == "python2" || %{python3_version_nodots} < 36
Requires: python-pathlib2 >= 2.2.0
%endif
%python_subpackages
%description