Hello community,

here is the log from the commit of package python-pytest-forked for 
openSUSE:Factory checked in at 2020-08-25 12:40:37
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-pytest-forked (Old)
 and      /work/SRC/openSUSE:Factory/.python-pytest-forked.new.3399 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-pytest-forked"

Tue Aug 25 12:40:37 2020 rev:6 rq:828530 version:1.3.0

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/python-pytest-forked/python-pytest-forked.changes    
    2020-06-30 21:54:10.306333060 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-pytest-forked.new.3399/python-pytest-forked.changes
      2020-08-25 12:40:52.929438385 +0200
@@ -1,0 +2,8 @@
+Fri Aug 21 14:29:06 UTC 2020 - Marketa Calabkova <mcalabk...@suse.com>
+
+- Update to 1.3.0
+  * Add support for pytest 6 (issue #45 / PR #46)
+  * Replace `@pytest.mark.tryfirst` with newer `@pytest.hookimpl` (PR #46)
+  * Invoke `pytest_runtest_logstart` and `pytest_runtest_logfinish` hooks in 
`runtest_protocol` (issue #31 / PR #46)
+
+-------------------------------------------------------------------

Old:
----
  pytest-forked-1.2.0.tar.gz

New:
----
  pytest-forked-1.3.0.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-pytest-forked.spec ++++++
--- /var/tmp/diff_new_pack.ItRd0d/_old  2020-08-25 12:40:53.677438527 +0200
+++ /var/tmp/diff_new_pack.ItRd0d/_new  2020-08-25 12:40:53.677438527 +0200
@@ -18,18 +18,18 @@
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:           python-pytest-forked
-Version:        1.2.0
+Version:        1.3.0
 Release:        0
 Summary:        Run each test in a forked subprocess
 License:        MIT
 URL:            https://github.com/pytest-dev/pytest-forked
 Source:         
https://files.pythonhosted.org/packages/source/p/pytest-forked/pytest-forked-%{version}.tar.gz
-BuildRequires:  %{python_module pytest >= 3.1.0}
+BuildRequires:  %{python_module pytest >= 3.10}
 BuildRequires:  %{python_module setuptools_scm}
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
-Requires:       python-pytest >= 3.1.0
+Requires:       python-pytest >= 3.10
 BuildArch:      noarch
 %python_subpackages
 

++++++ pytest-forked-1.2.0.tar.gz -> pytest-forked-1.3.0.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pytest-forked-1.2.0/.travis.yml 
new/pytest-forked-1.3.0/.travis.yml
--- old/pytest-forked-1.2.0/.travis.yml 2020-06-25 15:22:49.000000000 +0200
+++ new/pytest-forked-1.3.0/.travis.yml 2020-07-27 21:49:27.000000000 +0200
@@ -12,11 +12,19 @@
   - TOXENV=py-pytest310
   - TOXENV=py-pytest46
   - TOXENV=py-pytest54
+  - TOXENV=py-pytest60
   - TOXENV=py-pytestlatest
+  - TOXENV=py-pytestmaster
 matrix:
   exclude:
   - python: '2.7'  # pytest 5+ does not support Python 2
     env: TOXENV=py-pytest54
+  - python: '2.7'  # pytest 5+ does not support Python 2
+    env: TOXENV=py-pytest60
+  - python: '2.7'  # pytest 5+ does not support Python 2
+    env: TOXENV=py-pytestmaster
+  - python: '2.7'  # Same as pytest54 for Python 2
+    env: TOXENV=py-pytestlatest
   include:
   - python: '3.8'
     env: TOXENV=flakes
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pytest-forked-1.2.0/CHANGELOG 
new/pytest-forked-1.3.0/CHANGELOG
--- old/pytest-forked-1.2.0/CHANGELOG   2020-06-25 15:22:49.000000000 +0200
+++ new/pytest-forked-1.3.0/CHANGELOG   2020-07-27 21:49:27.000000000 +0200
@@ -1,3 +1,10 @@
+v1.3.0
+======
+
+* Add support for pytest 6 (issue #45 / PR #46)
+* Replace `@pytest.mark.tryfirst` with newer `@pytest.hookimpl` (PR #46)
+* Invoke `pytest_runtest_logstart` and `pytest_runtest_logfinish` hooks in 
`runtest_protocol` (issue #31 / PR #46)
+
 v1.2.0
 ======
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pytest-forked-1.2.0/PKG-INFO 
new/pytest-forked-1.3.0/PKG-INFO
--- old/pytest-forked-1.2.0/PKG-INFO    2020-06-25 15:23:03.041469000 +0200
+++ new/pytest-forked-1.3.0/PKG-INFO    2020-07-27 21:49:41.340860100 +0200
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: pytest-forked
-Version: 1.2.0
+Version: 1.3.0
 Summary: run tests in isolated forked subprocesses
 Home-page: https://github.com/pytest-dev/pytest-forked
 Author: pytest-dev
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pytest-forked-1.2.0/setup.py 
new/pytest-forked-1.3.0/setup.py
--- old/pytest-forked-1.2.0/setup.py    2020-06-25 15:22:49.000000000 +0200
+++ new/pytest-forked-1.3.0/setup.py    2020-07-27 21:49:27.000000000 +0200
@@ -19,7 +19,7 @@
         ],
     },
     zip_safe=False,
-    install_requires=['pytest>=3.1.0'],
+    install_requires=['py', 'pytest>=3.10'],
     setup_requires=['setuptools_scm'],
     python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*',
     classifiers=[
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pytest-forked-1.2.0/src/pytest_forked/__init__.py 
new/pytest-forked-1.3.0/src/pytest_forked/__init__.py
--- old/pytest-forked-1.2.0/src/pytest_forked/__init__.py       2020-06-25 
15:22:49.000000000 +0200
+++ new/pytest-forked-1.3.0/src/pytest_forked/__init__.py       2020-07-27 
21:49:27.000000000 +0200
@@ -38,12 +38,15 @@
     )
 
 
-@pytest.mark.tryfirst
+@pytest.hookimpl(tryfirst=True)
 def pytest_runtest_protocol(item):
     if item.config.getvalue("forked") or item.get_closest_marker("forked"):
+        ihook = item.ihook
+        ihook.pytest_runtest_logstart(nodeid=item.nodeid, 
location=item.location)
         reports = forked_run_report(item)
         for rep in reports:
-            item.ihook.pytest_runtest_logreport(report=rep)
+            ihook.pytest_runtest_logreport(report=rep)
+        ihook.pytest_runtest_logfinish(nodeid=item.nodeid, 
location=item.location)
         return True
 
 
@@ -73,7 +76,7 @@
 
 
 def report_process_crash(item, result):
-    from _pytest._code.source import getfslineno
+    from _pytest._code import getfslineno
     path, lineno = getfslineno(item)
     info = ("%s:%s: running the test CRASHED with signal %d" %
             (path, lineno, result.signal))
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/pytest-forked-1.2.0/src/pytest_forked.egg-info/PKG-INFO 
new/pytest-forked-1.3.0/src/pytest_forked.egg-info/PKG-INFO
--- old/pytest-forked-1.2.0/src/pytest_forked.egg-info/PKG-INFO 2020-06-25 
15:23:03.000000000 +0200
+++ new/pytest-forked-1.3.0/src/pytest_forked.egg-info/PKG-INFO 2020-07-27 
21:49:41.000000000 +0200
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: pytest-forked
-Version: 1.2.0
+Version: 1.3.0
 Summary: run tests in isolated forked subprocesses
 Home-page: https://github.com/pytest-dev/pytest-forked
 Author: pytest-dev
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/pytest-forked-1.2.0/src/pytest_forked.egg-info/requires.txt 
new/pytest-forked-1.3.0/src/pytest_forked.egg-info/requires.txt
--- old/pytest-forked-1.2.0/src/pytest_forked.egg-info/requires.txt     
2020-06-25 15:23:03.000000000 +0200
+++ new/pytest-forked-1.3.0/src/pytest_forked.egg-info/requires.txt     
2020-07-27 21:49:41.000000000 +0200
@@ -1 +1,2 @@
-pytest>=3.1.0
+py
+pytest>=3.10
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pytest-forked-1.2.0/testing/conftest.py 
new/pytest-forked-1.3.0/testing/conftest.py
--- old/pytest-forked-1.2.0/testing/conftest.py 2020-06-25 15:22:49.000000000 
+0200
+++ new/pytest-forked-1.3.0/testing/conftest.py 2020-07-27 21:49:27.000000000 
+0200
@@ -9,9 +9,12 @@
     import atexit
     atexit_fns = []
 
+    def atexit_register(func, *args, **kwargs):
+        atexit_fns.append(lambda: func(*args, **kwargs))
+
     def finish():
         while atexit_fns:
             atexit_fns.pop()()
 
-    monkeypatch.setattr(atexit, "register", atexit_fns.append)
+    monkeypatch.setattr(atexit, "register", atexit_register)
     request.addfinalizer(finish)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pytest-forked-1.2.0/testing/test_xfail_behavior.py 
new/pytest-forked-1.3.0/testing/test_xfail_behavior.py
--- old/pytest-forked-1.2.0/testing/test_xfail_behavior.py      2020-06-25 
15:22:49.000000000 +0200
+++ new/pytest-forked-1.3.0/testing/test_xfail_behavior.py      2020-07-27 
21:49:27.000000000 +0200
@@ -53,7 +53,7 @@
     session_start_title = '*==== test session starts ====*'
     loaded_pytest_plugins = 'plugins: forked*'
     collected_tests_num = 'collected 1 item'
-    expected_progress = 'test_xfail.py {expected_letter!s}'.format(**locals())
+    expected_progress = 'test_xfail.py {expected_letter!s}*'.format(**locals())
     failures_title = '*==== FAILURES ====*'
     failures_test_name = '*____ test_function ____*'
     failures_test_reason = '[XPASS(strict)] The process gets terminated'
@@ -112,6 +112,9 @@
 
         import pytest
 
+        # The current implementation emits RuntimeWarning.
+        pytestmark = pytest.mark.filterwarnings('ignore:pytest-forked xfail')
+
         @pytest.mark.xfail(
             reason='The process gets terminated',
             strict={is_strict!s},
@@ -123,9 +126,5 @@
         format(**locals())
     )
 
-    pytest_run_result = testdir.runpytest(
-        test_module,
-        '-ra',
-        '-p', 'no:warnings',  # the current implementation emits RuntimeWarning
-    )
+    pytest_run_result = testdir.runpytest(test_module, '-ra')
     pytest_run_result.stdout.fnmatch_lines(expected_lines)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pytest-forked-1.2.0/tox.ini 
new/pytest-forked-1.3.0/tox.ini
--- old/pytest-forked-1.2.0/tox.ini     2020-06-25 15:22:49.000000000 +0200
+++ new/pytest-forked-1.3.0/tox.ini     2020-07-27 21:49:27.000000000 +0200
@@ -16,7 +16,9 @@
   pytest310: pytest~=3.10
   pytest46: pytest~=4.6
   pytest54: pytest~=5.4
+  pytest60: pytest~=6.0rc1
   pytestlatest: pytest
+  pytestmaster: git+https://github.com/pytest-dev/pytest.git@master
 platform=linux|darwin
 commands=
   pytest {posargs}


Reply via email to