- update to 3.4.2
- more in python-pytest.changes
- update to 3.4.2
* Removed progress information when capture option is no.
* Refactor check of bindir from exists to isdir.
* Fix TypeError issue when using approx with a Decimal value.
* Fix reference cycle generated when using the request fixture.
* [tool:pytest] sections in *.cfg files passed by the
-c option are now properly recognized.
OBS-URL: https://build.opensuse.org/request/show/584625
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pytest?expand=0&rev=34
- update to 3.4.1
* Move import of doctest.UnexpectedException to top-level to avoid possible
errors when using --pdb.
* Added printing of captured stdout/stderr before entering pdb, and improved a
test which was giving false negatives about output capturing.
* Fix ordering of tests using parametrized fixtures which can lead to fixtures
being created more than necessary.
* Fix bug where logging happening at hooks outside of "test run" hooks would
cause an internal error.
* Detect arguments injected by unittest.mock.patch decorator correctly when
pypi mock.patch is installed and imported.
* Errors shown when a pytest.raises() with match= fails are now cleaner
on what happened: When no exception was raised, the "matching '...'" part got
removed as it falsely implies that an exception was raised but it didn't
match. When a wrong exception was raised, it's now thrown
instead of complaining about the unmatched text.
* Add Sphinx parameter docs for match and message args to pytest.raises
* Rename ParameterSet._for_parameterize() to _for_parametrize() in
order to comply with the naming convention.
- update to 3.4.1
* Move import of doctest.UnexpectedException to top-level to avoid possible
errors when using --pdb.
* Added printing of captured stdout/stderr before entering pdb, and improved a
test which was giving false negatives about output capturing.
* Fix ordering of tests using parametrized fixtures which can lead to fixtures
being created more than necessary.
* Fix bug where logging happening at hooks outside of "test run" hooks would
cause an internal error.
* Detect arguments injected by unittest.mock.patch decorator correctly when (forwarded request 579197 from mimi_vx)
OBS-URL: https://build.opensuse.org/request/show/579198
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pytest?expand=0&rev=32
- update to version 3.2.3:
* Bug Fixes
+ Fix crash in tab completion when no prefix is given. (#2748)
+ The equality checking function (__eq__) of MarkDecorator returns
False if one object is not an instance of MarkDecorator. (#2758)
+ When running pytest --fixtures-per-test: don’t crash if an item
has no _fixtureinfo attribute (e.g. doctests) (#2788)
* Improved Documentation
+ In help text of -k option, add example of using not to not
select certain tests whose names match the provided
expression. (#1442)
+ Add note in parametrize.rst about calling metafunc.parametrize
multiple times. (#1548)
* Trivial/Internal Changes
+ Set xfail_strict=True in pytest’s own test suite to catch
expected failures as soon as they start to pass. (#2722)
+ Fix typo in example of passing a callable to markers (in
example/markers.rst) (#2765)
- Fix python-py version requirement.
- Update to 3.2.2:
* Bug Fixes
- Calling the deprecated request.getfuncargvalue() now shows the
source of the call. (#2681)
- Allow tests declared as @staticmethod to use fixtures. (#2699)
- Fixed edge-case during collection: attributes which raised
pytest.fail when accessed would abort the entire collection.
(#2707)
- Fix ReprFuncArgs with mixed unicode and UTF-8 args. (#2731)
* Improved Documentation
OBS-URL: https://build.opensuse.org/request/show/537603
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pytest?expand=0&rev=27
- Update to version 2.5.2:
- fix issue409 -- better interoperate with cx_freeze by not
trying to import from collections.abc which causes problems
for py27/cx_freeze. Thanks Wolfgang L. for reporting and tracking it down.
- fixed docs and code to use "pytest" instead of "py.test" almost everywhere.
Thanks Jurko Gospodnetic for the complete PR.
- fix issue425: mention at end of "py.test -h" that --markers
and --fixtures work according to specified test path (or current dir)
- fix issue413: exceptions with unicode attributes are now printed
correctly also on python2 and with pytest-xdist runs. (the fix
requires py-1.4.20)
- copy, cleanup and integrate py.io capture
from pylib 1.4.20.dev2 (rev 13d9af95547e)
- address issue416: clarify docs as to conftest.py loading semantics
- fix issue429: comparing byte strings with non-ascii chars in assert
expressions now work better. Thanks Floris Bruynooghe.
- make capfd/capsys.capture private, its unused and shouldnt be exposed
OBS-URL: https://build.opensuse.org/request/show/225731
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pytest?expand=0&rev=11
- Update to 2.5.1:
+ merge new documentation styling PR from Tobias Bieniek.
+ fix issue403: allow parametrize of multiple same-name functions within
a collection node.
+ Allow parameterized fixtures to specify the ID of the parameters by
adding an ids argument to pytest.fixture() and pytest.yield_fixture().
+ fix issue404 by always using the binary xml escape in the junitxml
plugin.
+ fix issue407: fix addoption docstring to point to argparse instead of
optparse.
* 2.5.0:
+ dropped python2.5 from automated release testing of pytest itself
which means it's probably going to break soon
+ simplified and fixed implementation for calling finalizers when
parametrized fixtures or function arguments are involved. finalization
is now performed lazily at setup time instead of in the "teardown phase".
+ PR90: add --color=yes|no|auto option to force terminal coloring
mode ("auto" is default).
+ fix issue319 - correctly show unicode in assertion errors. Also means
we depend on py>=1.4.19 now.
+ fix issue396 - correctly sort and finalize class-scoped parametrized
tests independently from number of methods on the class.
+ refix issue323 in a better way -- parametrization should now never
cause Runtime Recursion errors because the underlying algorithm
for re-ordering tests per-scope/per-fixture is not recursive
anymore
+ fix issue290 - there is preliminary support now for parametrizing
with repeated same values (sometimes useful to to test if calling
a second time works as with the first time).
+ close issue240 - document precisely how pytest module importing (forwarded request 212738 from mvyskocil)
OBS-URL: https://build.opensuse.org/request/show/212740
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pytest?expand=0&rev=9