Accepting request 646342 from devel:languages:python:pytest

- update to 3.10.0
 * Resume capturing output after continue with __import__("pdb").set_trace().
 * Add -sw, --stepwise as an alternative to --lf -x for stopping at the first
    failure, but starting the next test invocation from that test.
 * Make --color emit colorful dots when not running in verbose mode.
 * Improve performance with collection reporting in non-quiet mode with terminals.
 * The "collecting …" message is only printed/updated every 0.5s.
 * Fix false RemovedInPytest4Warning: usage of Session... is deprecated, 
    please use pytest warnings.
 * Fix problems with running tests in package __init__.py files.
 * Swallow warnings during anonymous compilation of source.
 * Fix access denied error when deleting stale directories
    created by tmpdir / tmp_path.
 * Naming a fixture request will now raise a warning: the request fixture
    is internal and should not be overwritten as it will lead to internal errors.
 * Handle (ignore) exceptions raised during collection, e.g.
    with Django's LazySettings proxy class.
 * Added missing documentation about the fact that module names passed
    to filter warnings are not regex-escaped.
 * Display cachedir also in non-verbose mode if non-default.
 * pdb: improve message about output capturing with set_trace.
 * Do not display "IO-capturing turned off/on" when -s is used to avoid confusion.
 * Improve message and stack level of warnings issued by monkeypatch.setenv
    when the value of the environment variable is not a str.
 * Fix "ValueError: Plugin already registered" with conftest plugins via symlink.
 * Handle race condition between creation and deletion of temporary folders.
 * Fix bug where the warning summary at the end of the test session was
    not showing the test where the warning was originated.
 * Fix regression when stacklevel for warnings was passed as positional
    argument on python2.

OBS-URL: https://build.opensuse.org/request/show/646342
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pytest?expand=0&rev=42
This commit is contained in:
Dominique Leuenberger 2018-11-12 08:49:12 +00:00 committed by Git OBS Bridge
commit 2f666e82e9
6 changed files with 215 additions and 6 deletions

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

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

View File

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

View File

@ -1,3 +1,107 @@
-------------------------------------------------------------------
Mon Nov 5 08:13:05 UTC 2018 - Ondřej Súkup <mimi.vx@gmail.com>
- update to 3.10.0
* Resume capturing output after continue with __import__("pdb").set_trace().
* Add -sw, --stepwise as an alternative to --lf -x for stopping at the first
failure, but starting the next test invocation from that test.
* Make --color emit colorful dots when not running in verbose mode.
* Improve performance with collection reporting in non-quiet mode with terminals.
* The "collecting …" message is only printed/updated every 0.5s.
* Fix false RemovedInPytest4Warning: usage of Session... is deprecated,
please use pytest warnings.
* Fix problems with running tests in package __init__.py files.
* Swallow warnings during anonymous compilation of source.
* Fix access denied error when deleting stale directories
created by tmpdir / tmp_path.
* Naming a fixture request will now raise a warning: the request fixture
is internal and should not be overwritten as it will lead to internal errors.
* Handle (ignore) exceptions raised during collection, e.g.
with Django's LazySettings proxy class.
* Added missing documentation about the fact that module names passed
to filter warnings are not regex-escaped.
* Display cachedir also in non-verbose mode if non-default.
* pdb: improve message about output capturing with set_trace.
* Do not display "IO-capturing turned off/on" when -s is used to avoid confusion.
* Improve message and stack level of warnings issued by monkeypatch.setenv
when the value of the environment variable is not a str.
* Fix "ValueError: Plugin already registered" with conftest plugins via symlink.
* Handle race condition between creation and deletion of temporary folders.
* Fix bug where the warning summary at the end of the test session was
not showing the test where the warning was originated.
* Fix regression when stacklevel for warnings was passed as positional
argument on python2.
* Add reference to empty_parameter_set_mark ini option in documentation
of @pytest.mark.parametrize
* Revert patching of sys.breakpointhook since it appears to do nothing.
* Apply an import sorter (reorder-python-imports) to the codebase.
* Remove use of unnecessary compat shim, six.binary_type
-------------------------------------------------------------------
Fri Oct 26 10:59:13 UTC 2018 - Ondřej Súkup <mimi.vx@gmail.com>
- update to 3.9.2
* Improve error message when a recursive dependency between fixtures is detected.
* Fix logging messages not shown in hooks pytest_sessionstart() and pytest_sessionfinish().
* Fix unescaped XML raw objects in JUnit report for skipped tests
* Python 2: safely format warning message about passing unicode strings to
warnings.warn, which may cause surprising MemoryError exception when monkey
patching warnings.warn itself.
* Improve error message when it is not possible to determine a functions signature.
* Pin setuptools>=40.0 to support py_modules in setup.cfg
* Restore the tmpdir behaviour of symlinking the current test run.
* Fix filename reported by warnings.warn when using recwarn under python2.
* For test-suites containing test classes, the information about the subclassed
module is now output only if a higher verbosity level is specified (at least “-vv”).
* The following accesses have been documented as deprecated for years, but are now
actually emitting deprecation warnings.
* Add a Deprecation warning for pytest.ensuretemp as it was deprecated since a while.
* Improve usage errors messages by hiding internal details which can
be distracting and noisy.
This has the side effect that some error conditions that previously raised
generic errors (such as ValueError for unregistered marks) are now raising
Failed exceptions.
* Log messages generated in the collection phase are shown when live-logging
is enabled and/or when they are logged to a file.
* Introduce tmp_path as a fixture providing a Path object.
* Deprecation warnings are now shown even if you customize the warnings
filters yourself. In the previous version any customization would override
pytests filters and deprecation warnings would fall back to being hidden by default.
* Allow specification of timeout for Testdir.runpytest_subprocess() and Testdir.run().
* Add returncode argument to pytest.exit() to exit pytest with a specific return code.
* Reimplement pytest.deprecated_call using pytest.warns so it supports
the match='...' keyword argument.
This has the side effect that pytest.deprecated_call now raises
pytest.fail.Exception instead of AssertionError.
* Improve error message when test functions of unittest.TestCase subclasses
use a parametrized fixture.
* request.fixturenames now correctly returns the name of fixtures
created by request.getfixturevalue().
* Warning filters passed as command line options using -W now take precedence
over filters defined in ini configuration files.
* Fix source reindenting by using textwrap.dedent directly.
* pytest.warn will capture previously-warned warnings in Python 2.
Previously they were never raised.
* Resolve symbolic links for args.
This fixes running pytest tests/test_foo.py::test_bar, where tests is
a symlink to project/app/tests: previously project/app/conftest.py would be
ignored for fixtures then.
* Fix duplicate printing of internal errors when using --pdb.
* pathlib based tmpdir cleanup now correctly handles symlinks in the folder.
* Display the filename when encountering SyntaxWarning.
* Update usefixtures documentation to clarify that it cant be used
with fixture functions.
* Update fixture documentation to specify that a fixture can be invoked twice
in the scope its defined for.
* According to unittest.rst, setUpModule and tearDownModule were not implemented,
but it turns out they are. So updated the documentation for unittest.
* Add tempir testing example to CONTRIBUTING.rst guide
* The internal MarkerError exception has been removed.
* Port the implementation of tmpdir to pathlib.
* Exclude 0.00 second entries from --duration output unless -vv is passed
on the command-line.
* Fixed formatting of string literals in internal tests.
-------------------------------------------------------------------
Mon Sep 24 10:43:29 UTC 2018 - Ondřej Súkup <mimi.vx@gmail.com>

View File

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

View File

@ -1,3 +1,107 @@
-------------------------------------------------------------------
Mon Nov 5 08:13:05 UTC 2018 - Ondřej Súkup <mimi.vx@gmail.com>
- update to 3.10.0
* Resume capturing output after continue with __import__("pdb").set_trace().
* Add -sw, --stepwise as an alternative to --lf -x for stopping at the first
failure, but starting the next test invocation from that test.
* Make --color emit colorful dots when not running in verbose mode.
* Improve performance with collection reporting in non-quiet mode with terminals.
* The "collecting …" message is only printed/updated every 0.5s.
* Fix false RemovedInPytest4Warning: usage of Session... is deprecated,
please use pytest warnings.
* Fix problems with running tests in package __init__.py files.
* Swallow warnings during anonymous compilation of source.
* Fix access denied error when deleting stale directories
created by tmpdir / tmp_path.
* Naming a fixture request will now raise a warning: the request fixture
is internal and should not be overwritten as it will lead to internal errors.
* Handle (ignore) exceptions raised during collection, e.g.
with Django's LazySettings proxy class.
* Added missing documentation about the fact that module names passed
to filter warnings are not regex-escaped.
* Display cachedir also in non-verbose mode if non-default.
* pdb: improve message about output capturing with set_trace.
* Do not display "IO-capturing turned off/on" when -s is used to avoid confusion.
* Improve message and stack level of warnings issued by monkeypatch.setenv
when the value of the environment variable is not a str.
* Fix "ValueError: Plugin already registered" with conftest plugins via symlink.
* Handle race condition between creation and deletion of temporary folders.
* Fix bug where the warning summary at the end of the test session was
not showing the test where the warning was originated.
* Fix regression when stacklevel for warnings was passed as positional
argument on python2.
* Add reference to empty_parameter_set_mark ini option in documentation
of @pytest.mark.parametrize
* Revert patching of sys.breakpointhook since it appears to do nothing.
* Apply an import sorter (reorder-python-imports) to the codebase.
* Remove use of unnecessary compat shim, six.binary_type
-------------------------------------------------------------------
Fri Oct 26 10:59:13 UTC 2018 - Ondřej Súkup <mimi.vx@gmail.com>
- update to 3.9.2
* Improve error message when a recursive dependency between fixtures is detected.
* Fix logging messages not shown in hooks pytest_sessionstart() and pytest_sessionfinish().
* Fix unescaped XML raw objects in JUnit report for skipped tests
* Python 2: safely format warning message about passing unicode strings to
warnings.warn, which may cause surprising MemoryError exception when monkey
patching warnings.warn itself.
* Improve error message when it is not possible to determine a functions signature.
* Pin setuptools>=40.0 to support py_modules in setup.cfg
* Restore the tmpdir behaviour of symlinking the current test run.
* Fix filename reported by warnings.warn when using recwarn under python2.
* For test-suites containing test classes, the information about the subclassed
module is now output only if a higher verbosity level is specified (at least “-vv”).
* The following accesses have been documented as deprecated for years, but are now
actually emitting deprecation warnings.
* Add a Deprecation warning for pytest.ensuretemp as it was deprecated since a while.
* Improve usage errors messages by hiding internal details which can
be distracting and noisy.
This has the side effect that some error conditions that previously raised
generic errors (such as ValueError for unregistered marks) are now raising
Failed exceptions.
* Log messages generated in the collection phase are shown when live-logging
is enabled and/or when they are logged to a file.
* Introduce tmp_path as a fixture providing a Path object.
* Deprecation warnings are now shown even if you customize the warnings
filters yourself. In the previous version any customization would override
pytests filters and deprecation warnings would fall back to being hidden by default.
* Allow specification of timeout for Testdir.runpytest_subprocess() and Testdir.run().
* Add returncode argument to pytest.exit() to exit pytest with a specific return code.
* Reimplement pytest.deprecated_call using pytest.warns so it supports
the match='...' keyword argument.
This has the side effect that pytest.deprecated_call now raises
pytest.fail.Exception instead of AssertionError.
* Improve error message when test functions of unittest.TestCase subclasses
use a parametrized fixture.
* request.fixturenames now correctly returns the name of fixtures
created by request.getfixturevalue().
* Warning filters passed as command line options using -W now take precedence
over filters defined in ini configuration files.
* Fix source reindenting by using textwrap.dedent directly.
* pytest.warn will capture previously-warned warnings in Python 2.
Previously they were never raised.
* Resolve symbolic links for args.
This fixes running pytest tests/test_foo.py::test_bar, where tests is
a symlink to project/app/tests: previously project/app/conftest.py would be
ignored for fixtures then.
* Fix duplicate printing of internal errors when using --pdb.
* pathlib based tmpdir cleanup now correctly handles symlinks in the folder.
* Display the filename when encountering SyntaxWarning.
* Update usefixtures documentation to clarify that it cant be used
with fixture functions.
* Update fixture documentation to specify that a fixture can be invoked twice
in the scope its defined for.
* According to unittest.rst, setUpModule and tearDownModule were not implemented,
but it turns out they are. So updated the documentation for unittest.
* Add tempir testing example to CONTRIBUTING.rst guide
* The internal MarkerError exception has been removed.
* Port the implementation of tmpdir to pathlib.
* Exclude 0.00 second entries from --duration output unless -vv is passed
on the command-line.
* Fixed formatting of string literals in internal tests.
-------------------------------------------------------------------
Mon Sep 24 10:43:29 UTC 2018 - Ondřej Súkup <mimi.vx@gmail.com>

View File

@ -18,17 +18,18 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-pytest
Version: 3.8.1
Version: 3.10.0
Release: 0
Summary: Python testing tool with autodiscovery and detailed asserts
License: MIT
Group: Development/Languages/Python
URL: https://github.com/pytest-dev/pytest
Source: https://files.pythonhosted.org/packages/source/p/pytest/pytest-%{version}.tar.gz
BuildRequires: %{python_module setuptools >= 40.0}
BuildRequires: %{python_module setuptools_scm}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-atomicwrites
Requires: python-atomicwrites >= 1.0
Requires: python-attrs >= 17.4.0
Requires: python-more-itertools >= 4.0.0
Requires: python-pluggy >= 0.7