Overview

Request 729497 accepted

- Update to 5.1.2:
* #2270: Fixed self reference in function-scoped fixtures defined plugin classes: previously self would be a reference to a test class, not the plugin class.
* #570: Fixed long standing issue where fixture scope was not respected when indirect fixtures were used during parametrization.
* #5782: Fix decoding error when printing an error response from --pastebin.
* #5786: Chained exceptions in test and collection reports are now correctly serialized, allowing plugins like pytest-xdist to display them properly.

- Update to 5.1.1
* Removed:
+ Request.getfuncargvalue: use Request.getfixturevalue instead.
+ pytest.raises and pytest.warns no longer support strings as the second argument.
+ message parameter of pytest.raises.
+ pytest.raises, pytest.warns and ParameterSet.param now use native keyword-only
syntax. This might change the exception message from previous versions, but
they still raise TypeError on unknown keyword arguments as before.
+ pytest.config global variable.
+ tmpdir_factory.ensuretemp method.
+ pytest_logwarning hook.
+ RemovedInPytest4Warning warning type.
+ request is now a reserved name for fixtures.
+ Removed unused support code for unittest2.
+ pytest.fail, pytest.xfail and pytest.skip no longer support bytes
for the message argument.
* New Config.invocation_args attribute containing the unchanged arguments passed to pytest.main().
* New NUMBER option for doctests to ignore irrelevant differences in floating-point numbers
* JUnit XML now includes a timestamp and hostname in the testsuite tag.
* Fix RuntimeError/StopIteration when trying to collect package with “__init__.py” only.
* Warnings issued during pytest_configure are explicitly not treated as errors,
even if configured as such, because it otherwise completely breaks pytest.
* The XML file produced by --junitxml now correctly contain a root element.
* Fixed using multiple short options together in the command-line (for example -vs) in Python 3.8+.


Max Lin's avatar

@scarabeus_iv with current prjconf change, I saw several place had

have choice for python3-pytest < 5.0: python3-pytest3 python3-pytest4

maybe we changed prjconf too early?


Tomáš Chvátal's avatar

I wrote you on IRC, i solved this by Prefer: -python3-pytest3 to make sure only one choice is available if there is dispute.

But still I get a conflict:

python3-pytest4 conflicts with python3-pytest

Which I can't reproduce localy...


Max Lin's avatar

makes sense.

the conflict issue I saw that at eg. python-blessed and python-bleach


Yuchen Lin's avatar

err... I reverted python3-pytest4 / python3-pytest change in prjconf, python-bleach is a ring package at least, we can re-introduce it once the conflicting issue being fixed.

Request History
Tomáš Chvátal's avatar

scarabeus_iv created request

- Update to 5.1.2:
* #2270: Fixed self reference in function-scoped fixtures defined plugin classes: previously self would be a reference to a test class, not the plugin class.
* #570: Fixed long standing issue where fixture scope was not respected when indirect fixtures were used during parametrization.
* #5782: Fix decoding error when printing an error response from --pastebin.
* #5786: Chained exceptions in test and collection reports are now correctly serialized, allowing plugins like pytest-xdist to display them properly.

- Update to 5.1.1
* Removed:
+ Request.getfuncargvalue: use Request.getfixturevalue instead.
+ pytest.raises and pytest.warns no longer support strings as the second argument.
+ message parameter of pytest.raises.
+ pytest.raises, pytest.warns and ParameterSet.param now use native keyword-only
syntax. This might change the exception message from previous versions, but
they still raise TypeError on unknown keyword arguments as before.
+ pytest.config global variable.
+ tmpdir_factory.ensuretemp method.
+ pytest_logwarning hook.
+ RemovedInPytest4Warning warning type.
+ request is now a reserved name for fixtures.
+ Removed unused support code for unittest2.
+ pytest.fail, pytest.xfail and pytest.skip no longer support bytes
for the message argument.
* New Config.invocation_args attribute containing the unchanged arguments passed to pytest.main().
* New NUMBER option for doctests to ignore irrelevant differences in floating-point numbers
* JUnit XML now includes a timestamp and hostname in the testsuite tag.
* Fix RuntimeError/StopIteration when trying to collect package with “__init__.py” only.
* Warnings issued during pytest_configure are explicitly not treated as errors,
even if configured as such, because it otherwise completely breaks pytest.
* The XML file produced by --junitxml now correctly contain a root element.
* Fixed using multiple short options together in the command-line (for example -vs) in Python 3.8+.


Factory Auto's avatar

factory-auto added opensuse-review-team as a reviewer

Please review sources


Factory Auto's avatar

factory-auto accepted review

Check script succeeded


Saul Goodman's avatar

licensedigger accepted review

ok


Jan Engelhardt's avatar

jengelh accepted review


Dominique Leuenberger's avatar

dimstar_suse set openSUSE:Factory:Staging:C as a staging project

Being evaluated by staging project "openSUSE:Factory:Staging:C"


Dominique Leuenberger's avatar

dimstar_suse accepted review

Picked openSUSE:Factory:Staging:C


Dominique Leuenberger's avatar

dimstar_suse set openSUSE:Factory:Staging:K as a staging project

Being evaluated by staging project "openSUSE:Factory:Staging:K"


Dominique Leuenberger's avatar

dimstar_suse accepted review

Moved to openSUSE:Factory:Staging:K


Dominique Leuenberger's avatar

dimstar_suse accepted review

ready to accept


Dominique Leuenberger's avatar

dimstar_suse approved review

ready to accept


Dominique Leuenberger's avatar

dimstar_suse accepted request

Accept to openSUSE:Factory

openSUSE Build Service is sponsored by