commit python-flaky for openSUSE:Factory
Hello community, here is the log from the commit of package python-flaky for openSUSE:Factory checked in at 2019-07-31 14:15:46 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-flaky (Old) and /work/SRC/openSUSE:Factory/.python-flaky.new.4126 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "python-flaky" Wed Jul 31 14:15:46 2019 rev:4 rq:718853 version:3.6.0 Changes: -------- --- /work/SRC/openSUSE:Factory/python-flaky/python-flaky.changes 2019-03-29 20:34:17.034631063 +0100 +++ /work/SRC/openSUSE:Factory/.python-flaky.new.4126/python-flaky.changes 2019-07-31 14:15:48.522739425 +0200 @@ -1,0 +2,9 @@ +Fri Jul 26 10:48:12 UTC 2019 - pgajdos@suse.com + +- version update to 3.6.0 + * Do not print an empty report if no tests marked 'flaky' were run at all (#116). NOTE: This change could be breaking if you relied on the flaky report being printed. +- test via multibuild +- added sources + + _multibuild + +------------------------------------------------------------------- Old: ---- flaky-3.5.3.tar.gz New: ---- _multibuild flaky-3.6.0.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-flaky.spec ++++++ --- /var/tmp/diff_new_pack.UTDFAy/_old 2019-07-31 14:15:49.090738375 +0200 +++ /var/tmp/diff_new_pack.UTDFAy/_new 2019-07-31 14:15:49.094738367 +0200 @@ -17,18 +17,29 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} +%global flavor @BUILD_FLAVOR@%{nil} +%if "%{flavor}" == "test" +%define psuffix -test +%bcond_without test +%else +%define psuffix %{nil} +%bcond_with test +%endif Name: python-flaky -Version: 3.5.3 +Version: 3.6.0 Release: 0 Summary: Plugin for nose or py.test that automatically reruns flaky tests License: Apache-2.0 Group: Development/Languages/Python URL: https://github.com/box/flaky Source: https://files.pythonhosted.org/packages/source/f/flaky/flaky-%{version}.tar.gz +%if %{with test} +BuildRequires: %{python_module flaky >= %{version}} BuildRequires: %{python_module genty} BuildRequires: %{python_module mock} BuildRequires: %{python_module nose} BuildRequires: %{python_module pytest} +%endif BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros @@ -47,16 +58,36 @@ %prep %setup -q -n flaky-%{version} +%if !%{with test} %build %python_build +%endif +%if !%{with test} %install %python_install %python_expand %fdupes %{buildroot}%{$python_sitelib} +%endif +%if %{with test} +%check +%{python_expand echo + nosetests="nosetests-%{$python_bin_suffix}" + pytest="pytest-%{$python_bin_suffix}" + $nosetests --with-flaky --exclude="test_nose_options_example" test/test_nose/ + $pytest -k 'example and not options' --doctest-modules test/test_pytest/ + $pytest -k 'example and not options' test/test_pytest/ + $pytest -p no:flaky test/test_pytest/test_flaky_pytest_plugin.py + $nosetests --with-flaky --force-flaky --max-runs 2 test/test_nose/test_nose_options_example.py + $pytest --force-flaky --max-runs 2 test/test_pytest/test_pytest_options_example.py +} +%endif + +%if !%{with test} %files %{python_files} %doc README.rst %license LICENSE %{python_sitelib}/* +%endif %changelog ++++++ _multibuild ++++++ <multibuild> <package>test</package> </multibuild> ++++++ flaky-3.5.3.tar.gz -> flaky-3.6.0.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/flaky-3.5.3/MANIFEST.in new/flaky-3.6.0/MANIFEST.in --- old/flaky-3.5.3/MANIFEST.in 2019-01-07 20:05:58.000000000 +0100 +++ new/flaky-3.6.0/MANIFEST.in 2019-06-24 19:05:14.000000000 +0200 @@ -1,2 +1,2 @@ include README.rst LICENSE -recursive-include test test*.py __init__.py +recursive-include test test*.py __init__.py conftest.py diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/flaky-3.5.3/PKG-INFO new/flaky-3.6.0/PKG-INFO --- old/flaky-3.5.3/PKG-INFO 2019-01-17 01:06:33.000000000 +0100 +++ new/flaky-3.6.0/PKG-INFO 2019-06-25 18:47:28.000000000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 1.2 Name: flaky -Version: 3.5.3 +Version: 3.6.0 Summary: Plugin for nose or pytest that automatically reruns flaky tests. Home-page: https://github.com/box/flaky Author: Box @@ -107,7 +107,7 @@ def test_something_else(): raise ProductCrashedError - Flaky will run `test_something` twice, but will only run `test_something_else` once. + Flaky will run ``test_something`` twice, but will only run ``test_something_else`` once. It can also be used to incur a delay between test retries: @@ -179,7 +179,7 @@ - Nosetests. Doctests cannot be marked flaky. - - Py.test. Works with `pytest-xdist` but not with the `--boxed` option. Doctests cannot be marked flaky. + - Py.test. Works with ``pytest-xdist`` but not with the ``--boxed`` option. Doctests cannot be marked flaky. Contributing diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/flaky-3.5.3/README.rst new/flaky-3.6.0/README.rst --- old/flaky-3.5.3/README.rst 2019-01-09 18:41:23.000000000 +0100 +++ new/flaky-3.6.0/README.rst 2019-06-24 19:05:14.000000000 +0200 @@ -99,7 +99,7 @@ def test_something_else(): raise ProductCrashedError -Flaky will run `test_something` twice, but will only run `test_something_else` once. +Flaky will run ``test_something`` twice, but will only run ``test_something_else`` once. It can also be used to incur a delay between test retries: @@ -171,7 +171,7 @@ - Nosetests. Doctests cannot be marked flaky. -- Py.test. Works with `pytest-xdist` but not with the `--boxed` option. Doctests cannot be marked flaky. +- Py.test. Works with ``pytest-xdist`` but not with the ``--boxed`` option. Doctests cannot be marked flaky. Contributing diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/flaky-3.5.3/flaky/_flaky_plugin.py new/flaky-3.6.0/flaky/_flaky_plugin.py --- old/flaky-3.5.3/flaky/_flaky_plugin.py 2019-01-17 00:39:05.000000000 +0100 +++ new/flaky-3.6.0/flaky/_flaky_plugin.py 2019-06-24 19:05:14.000000000 +0200 @@ -19,6 +19,7 @@ super(_FlakyPlugin, self).__init__() self._stream = StringIO() self._flaky_success_report = True + self._had_flaky_tests = False @property def stream(self): @@ -180,6 +181,7 @@ return False if self._has_flaky_attributes(test): + self._had_flaky_tests = True self._add_flaky_test_failure(test, err) should_handle = self._should_handle_test_error_or_failure(test) self._increment_flaky_attribute(test, FlakyNames.CURRENT_RUNS) @@ -269,6 +271,7 @@ need_reruns = self._should_handle_test_success(test) if self._has_flaky_attributes(test): + self._had_flaky_tests = True flaky = self._get_flaky_attributes(test) min_passes = flaky[FlakyNames.MIN_PASSES] passes = flaky[FlakyNames.CURRENT_PASSES] + 1 @@ -376,6 +379,10 @@ """ value = self._stream.getvalue() + # Do not print report if there were no tests marked 'flaky' at all. + if not self._had_flaky_tests and not value: + return + # If everything succeeded and --no-success-flaky-report is specified # don't print anything. if not self._flaky_success_report and not value: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/flaky-3.5.3/flaky.egg-info/PKG-INFO new/flaky-3.6.0/flaky.egg-info/PKG-INFO --- old/flaky-3.5.3/flaky.egg-info/PKG-INFO 2019-01-17 01:06:32.000000000 +0100 +++ new/flaky-3.6.0/flaky.egg-info/PKG-INFO 2019-06-25 18:47:28.000000000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 1.2 Name: flaky -Version: 3.5.3 +Version: 3.6.0 Summary: Plugin for nose or pytest that automatically reruns flaky tests. Home-page: https://github.com/box/flaky Author: Box @@ -107,7 +107,7 @@ def test_something_else(): raise ProductCrashedError - Flaky will run `test_something` twice, but will only run `test_something_else` once. + Flaky will run ``test_something`` twice, but will only run ``test_something_else`` once. It can also be used to incur a delay between test retries: @@ -179,7 +179,7 @@ - Nosetests. Doctests cannot be marked flaky. - - Py.test. Works with `pytest-xdist` but not with the `--boxed` option. Doctests cannot be marked flaky. + - Py.test. Works with ``pytest-xdist`` but not with the ``--boxed`` option. Doctests cannot be marked flaky. Contributing diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/flaky-3.5.3/flaky.egg-info/SOURCES.txt new/flaky-3.6.0/flaky.egg-info/SOURCES.txt --- old/flaky-3.5.3/flaky.egg-info/SOURCES.txt 2019-01-17 01:06:32.000000000 +0100 +++ new/flaky-3.6.0/flaky.egg-info/SOURCES.txt 2019-06-25 18:47:28.000000000 +0200 @@ -33,4 +33,5 @@ test/test_pytest/test_pytest_options_example.py test/test_pytest/test_pytester_plugin.py test/test_pytest/pytest_generate_example/__init__.py +test/test_pytest/pytest_generate_example/conftest.py test/test_pytest/pytest_generate_example/test_pytest_generate_example.py \ No newline at end of file diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/flaky-3.5.3/setup.py new/flaky-3.6.0/setup.py --- old/flaky-3.5.3/setup.py 2019-01-17 01:02:40.000000000 +0100 +++ new/flaky-3.6.0/setup.py 2019-06-24 19:11:57.000000000 +0200 @@ -55,7 +55,7 @@ base_dir = dirname(__file__) setup( name='flaky', - version='3.5.3', + version='3.6.0', description='Plugin for nose or pytest that automatically reruns flaky tests.', long_description=open(join(base_dir, 'README.rst')).read(), author='Box', diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/flaky-3.5.3/test/test_pytest/pytest_generate_example/conftest.py new/flaky-3.6.0/test/test_pytest/pytest_generate_example/conftest.py --- old/flaky-3.5.3/test/test_pytest/pytest_generate_example/conftest.py 1970-01-01 01:00:00.000000000 +0100 +++ new/flaky-3.6.0/test/test_pytest/pytest_generate_example/conftest.py 2019-01-07 20:05:58.000000000 +0100 @@ -0,0 +1,11 @@ +# coding: utf-8 + +from __future__ import unicode_literals + + +def pytest_generate_tests(metafunc): + """ + Parameterize a fixture named 'dummy_list' with an empty list + """ + if 'dummy_list' in metafunc.fixturenames: + metafunc.parametrize("dummy_list", [[]])
participants (1)
-
root