Overview

Request 636148 superseded

- 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.



Max Lin's avatar
[   44s] + py.test-2.7 -v -k 'not (test_pip_download or test_old_setuptools_fails or test_old_setuptools_allows_with_warnings or test_distlib_setuptools_works)'
[   44s] ============================= test session starts ==============================
[   44s] platform linux2 -- Python 2.7.15, pytest-3.8.0, py-1.5.4, pluggy-0.7.1 -- /usr/bin/python2
[   44s] cachedir: .pytest_cache
[   44s] setuptools version 40.2.0 from '/usr/lib/python2.7/site-packages/setuptools/__init__.pyc'
[   44s] setuptools_scm version 3.1.0 from '/usr/lib/python2.7/site-packages/setuptools_scm/__init__.pyc'
[   44s] rootdir: /home/abuild/rpmbuild/BUILD/setuptools_scm-3.1.0, inifile: tox.ini
[   45s] collecting ... collected 91 items / 2 errors / 4 deselected
[   45s] 
[   45s] ==================================== ERRORS ====================================
[   45s] __________________ ERROR collecting testing/test_functions.py __________________
[   45s] testing/test_functions.py:37: in 
[   45s]     "exact": meta("1.1", distance=None, dirty=False),
[   45s] /usr/lib/python2.7/site-packages/setuptools_scm/version.py:199: in meta
[   45s]     "meta invoked without explicit configuration,"
[   45s] E   UserWarning: meta invoked without explicit configuration, will use defaults where required.
[   45s] ___________________ ERROR collecting testing/test_version.py ___________________
[   45s] testing/test_version.py:9: in 
[   45s]     pytest.param(meta("1.0.0"), "1.0.0", id="exact"),
[   45s] /usr/lib/python2.7/site-packages/setuptools_scm/version.py:199: in meta
[   45s]     "meta invoked without explicit configuration,"
[   45s] E   UserWarning: meta invoked without explicit configuration, will use defaults where required.
[   45s] !!!!!!!!!!!!!!!!!!! Interrupted: 2 errors during collection !!!!!!!!!!!!!!!!!!!!
[   45s] ==================== 4 deselected, 2 error in 0.56 seconds =====================
[   45s] error: Bad exit status from /var/tmp/rpm-tmp.2nRNp6 (%check)

Yuchen Lin's avatar

backlog: breaks several python package build


Ondřej Súkup's avatar

setuptools_scm:test fixed in last SR



Request History
Ondřej Súkup's avatar

mimi_vx created request

- 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.


Saul Goodman's avatar

licensedigger accepted review

ok


Factory Auto's avatar

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

Please review sources


Factory Auto's avatar

factory-auto added repo-checker as a reviewer

Please review build success


Factory Auto's avatar

factory-auto accepted review

Check script succeeded


Yuchen Lin's avatar

maxlin_factory added openSUSE:Factory:Staging:D as a reviewer

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


Yuchen Lin's avatar

maxlin_factory accepted review

Picked openSUSE:Factory:Staging:D


Yuchen Lin's avatar

maxlin_factory accepted review

Removing from openSUSE:Factory:Staging:D, re-evaluation needed


Yuchen Lin's avatar

maxlin_factory added factory-staging as a reviewer

Requesting new staging review


Yuchen Lin's avatar

maxlin_factory set openSUSE:Factory:Staging:G as a staging project

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


Yuchen Lin's avatar

maxlin_factory accepted review

Picked openSUSE:Factory:Staging:G


Repo Checker's avatar

repo-checker accepted review

cycle and install check passed


Ismail Dönmez's avatar

namtrac accepted review


Ondřej Súkup's avatar

mimi_vx superseded request

superseded by 637656

openSUSE Build Service is sponsored by