Accepting request 575840 from devel:languages:python

OBS-URL: https://build.opensuse.org/request/show/575840
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pytest?expand=0&rev=31
This commit is contained in:
Dominique Leuenberger 2018-02-15 12:20:39 +00:00 committed by Git OBS Bridge
parent adaecf3396
commit 7aea8b952d
6 changed files with 163 additions and 5 deletions

View File

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

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

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

View File

@ -1,3 +1,82 @@
-------------------------------------------------------------------
Sat Feb 10 17:59:11 UTC 2018 - arun@gmx.de
- update to version 3.4.0:
* Deprecations and Removals
+ All pytest classes now subclass object for better Python 2/3
compatibility. This should not affect user code except in very
rare edge cases. (#2147)
* Features
+ Introduce empty_parameter_set_mark ini option to select which
mark to apply when @pytest.mark.parametrize is given an empty
set of parameters. Valid options are skip (default) and
xfail. Note that it is planned to change the default to xfail in
future releases as this is considered less error prone. (#2527)
+ Incompatible change: after community feedback the logging
functionality has undergone some changes. Please consult the
logging documentation for details. (#3013)
+ Console output falls back to “classic” mode when capturing is
disabled (-s), otherwise the output gets garbled to the point of
being useless. (#3038)
+ New pytest_runtest_logfinish hook which is called when a test
item has finished executing, analogous to
pytest_runtest_logstart. (#3101)
+ Improve performance when collecting tests using many
fixtures. (#3107)
+ New caplog.get_records(when) method which provides access to the
captured records for the "setup", "call" and "teardown" testing
stages. (#3117)
+ New fixture record_xml_attribute that allows modifying and
inserting attributes on the <testcase> xml node in JUnit
reports. (#3130)
+ The default cache directory has been renamed from .cache to
.pytest_cache after community feedback that the name .cache did
not make it clear that it was used by pytest. (#3138)
+ Colorize the levelname column in the live-log output. (#3142)
* Bug Fixes
+ Fix hanging pexpect test on MacOS by using flush() instead of
wait(). (#2022)
+ Fix restoring Python state after in-process pytest runs with the
pytester plugin; this may break tests using multiple inprocess
pytest runs if later ones depend on earlier ones leaking global
interpreter changes. (#3016)
+ Fix skipping plugin reporting hook when test aborted before
plugin setup hook. (#3074)
+ Fix progress percentage reported when tests fail during
teardown. (#3088)
+ Incompatible change: -o/--override option no longer eats all the
remaining options, which can lead to surprising behavior: for
example, pytest -o foo=1 /path/to/test.py would fail because
/path/to/test.py would be considered as part of the -o
command-line argument. One consequence of this is that now
multiple configuration overrides need multiple -o flags: pytest
-o foo=1 -o bar=2. (#3103)
* Improved Documentation
+ Document hooks (defined with historic=True) which cannot be used
with hookwrapper=True. (#2423)
+ Clarify that warning capturing doesnt change the warning filter
by default. (#2457)
+ Clarify a possible confusion when using pytest_fixture_setup
with fixture functions that return None. (#2698)
+ Fix the wording of a sentence on doctest flags used in
pytest. (#3076)
+ Prefer https://*.readthedocs.io over http://*.rtfd.org for links
in the documentation. (#3092)
+ Improve readability (wording, grammar) of Getting Started guide
(#3131)
+ Added note that calling pytest.main multiple times from the same
process is not recommended because of import caching. (#3143)
* Trivial/Internal Changes
+ Show a simple and easy error when keyword expressions trigger a
syntax error (for example, "-k foo and import" will show an
error that you can not use the import keyword in
expressions). (#2953)
+ Change parametrized automatic test id generation to use the
__name__ attribute of functions instead of the fallback argument
name plus counter. (#2976)
+ Replace py.std with stdlib imports. (#3067)
+ Corrected you to your in logging docs. (#3129)
-------------------------------------------------------------------
Sat Jan 6 05:25:16 UTC 2018 - arun@gmx.de

View File

@ -18,7 +18,7 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-pytest-doc
Version: 3.3.2
Version: 3.4.0
Release: 0
Summary: Documentation for python-pytest, a testing tool with autodiscovery
License: MIT

View File

@ -1,3 +1,82 @@
-------------------------------------------------------------------
Sat Feb 10 17:59:11 UTC 2018 - arun@gmx.de
- update to version 3.4.0:
* Deprecations and Removals
+ All pytest classes now subclass object for better Python 2/3
compatibility. This should not affect user code except in very
rare edge cases. (#2147)
* Features
+ Introduce empty_parameter_set_mark ini option to select which
mark to apply when @pytest.mark.parametrize is given an empty
set of parameters. Valid options are skip (default) and
xfail. Note that it is planned to change the default to xfail in
future releases as this is considered less error prone. (#2527)
+ Incompatible change: after community feedback the logging
functionality has undergone some changes. Please consult the
logging documentation for details. (#3013)
+ Console output falls back to “classic” mode when capturing is
disabled (-s), otherwise the output gets garbled to the point of
being useless. (#3038)
+ New pytest_runtest_logfinish hook which is called when a test
item has finished executing, analogous to
pytest_runtest_logstart. (#3101)
+ Improve performance when collecting tests using many
fixtures. (#3107)
+ New caplog.get_records(when) method which provides access to the
captured records for the "setup", "call" and "teardown" testing
stages. (#3117)
+ New fixture record_xml_attribute that allows modifying and
inserting attributes on the <testcase> xml node in JUnit
reports. (#3130)
+ The default cache directory has been renamed from .cache to
.pytest_cache after community feedback that the name .cache did
not make it clear that it was used by pytest. (#3138)
+ Colorize the levelname column in the live-log output. (#3142)
* Bug Fixes
+ Fix hanging pexpect test on MacOS by using flush() instead of
wait(). (#2022)
+ Fix restoring Python state after in-process pytest runs with the
pytester plugin; this may break tests using multiple inprocess
pytest runs if later ones depend on earlier ones leaking global
interpreter changes. (#3016)
+ Fix skipping plugin reporting hook when test aborted before
plugin setup hook. (#3074)
+ Fix progress percentage reported when tests fail during
teardown. (#3088)
+ Incompatible change: -o/--override option no longer eats all the
remaining options, which can lead to surprising behavior: for
example, pytest -o foo=1 /path/to/test.py would fail because
/path/to/test.py would be considered as part of the -o
command-line argument. One consequence of this is that now
multiple configuration overrides need multiple -o flags: pytest
-o foo=1 -o bar=2. (#3103)
* Improved Documentation
+ Document hooks (defined with historic=True) which cannot be used
with hookwrapper=True. (#2423)
+ Clarify that warning capturing doesnt change the warning filter
by default. (#2457)
+ Clarify a possible confusion when using pytest_fixture_setup
with fixture functions that return None. (#2698)
+ Fix the wording of a sentence on doctest flags used in
pytest. (#3076)
+ Prefer https://*.readthedocs.io over http://*.rtfd.org for links
in the documentation. (#3092)
+ Improve readability (wording, grammar) of Getting Started guide
(#3131)
+ Added note that calling pytest.main multiple times from the same
process is not recommended because of import caching. (#3143)
* Trivial/Internal Changes
+ Show a simple and easy error when keyword expressions trigger a
syntax error (for example, "-k foo and import" will show an
error that you can not use the import keyword in
expressions). (#2953)
+ Change parametrized automatic test id generation to use the
__name__ attribute of functions instead of the fallback argument
name plus counter. (#2976)
+ Replace py.std with stdlib imports. (#3067)
+ Corrected you to your in logging docs. (#3129)
-------------------------------------------------------------------
Sat Jan 6 05:25:16 UTC 2018 - arun@gmx.de

View File

@ -18,7 +18,7 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-pytest
Version: 3.3.2
Version: 3.4.0
Release: 0
Summary: Python testing tool with autodiscovery and detailed asserts
License: MIT