Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-pytest-subtesthack for
openSUSE:Factory checked in at 2021-03-03 18:35:14
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-pytest-subtesthack (Old)
and /work/SRC/openSUSE:Factory/.python-pytest-subtesthack.new.2378 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-pytest-subtesthack"
Wed Mar 3 18:35:14 2021 rev:3 rq:876420 version:0.1.2
Changes:
--------
---
/work/SRC/openSUSE:Factory/python-pytest-subtesthack/python-pytest-subtesthack.changes
2019-09-18 13:11:24.796690235 +0200
+++
/work/SRC/openSUSE:Factory/.python-pytest-subtesthack.new.2378/python-pytest-subtesthack.changes
2021-03-03 18:35:15.715393672 +0100
@@ -1,0 +2,6 @@
+Wed Mar 3 08:48:57 UTC 2021 - Mark??ta Machov?? <[email protected]>
+
+- Update to 0.1.2
+ * fix build with pytest 6
+
+-------------------------------------------------------------------
Old:
----
0.1.1.tar.gz
New:
----
0.1.2.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-pytest-subtesthack.spec ++++++
--- /var/tmp/diff_new_pack.LF4otG/_old 2021-03-03 18:35:16.451394041 +0100
+++ /var/tmp/diff_new_pack.LF4otG/_new 2021-03-03 18:35:16.455394043 +0100
@@ -1,7 +1,7 @@
#
# spec file for package python-pytest-subtesthack
#
-# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2021 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -12,29 +12,29 @@
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
-# Please submit bugfixes or comments via http://bugs.opensuse.org/
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
+#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-pytest-subtesthack
-Version: 0.1.1
+Version: 0.1.2
Release: 0
-License: SUSE-Public-Domain
Summary: A hack to explicitly set up and tear down fixtures
-Url: https://github.com/untitaker/pytest-subtesthack/
+License: SUSE-Public-Domain
Group: Development/Languages/Python
+URL: https://github.com/untitaker/pytest-subtesthack/
Source:
https://github.com/untitaker/pytest-subtesthack/archive/%{version}.tar.gz
-BuildRequires: python-rpm-macros
BuildRequires: %{python_module devel}
BuildRequires: %{python_module setuptools}
+BuildRequires: fdupes
+BuildRequires: python-rpm-macros
+Requires: python-pytest
+BuildArch: noarch
# SECTION test requirements
BuildRequires: %{python_module hypothesis}
BuildRequires: %{python_module pytest}
# /SECTION
-BuildRequires: fdupes
-Requires: python-pytest
-BuildArch: noarch
-
%python_subpackages
%description
++++++ 0.1.1.tar.gz -> 0.1.2.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pytest-subtesthack-0.1.1/.travis.yml
new/pytest-subtesthack-0.1.2/.travis.yml
--- old/pytest-subtesthack-0.1.1/.travis.yml 2016-01-31 23:22:39.000000000
+0100
+++ new/pytest-subtesthack-0.1.2/.travis.yml 2021-03-02 18:09:46.000000000
+0100
@@ -1,10 +1,11 @@
language: python
python:
- - "2.6"
- "2.7"
- "pypy"
- - "3.3"
- "3.4"
+ - "3.5"
+ - "3.6"
+ - "3.7"
-install: pip install tox
+install: pip install tox tox-travis
script: tox
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pytest-subtesthack-0.1.1/pytest_subtesthack.py
new/pytest-subtesthack-0.1.2/pytest_subtesthack.py
--- old/pytest-subtesthack-0.1.1/pytest_subtesthack.py 2016-01-31
23:22:39.000000000 +0100
+++ new/pytest-subtesthack-0.1.2/pytest_subtesthack.py 2021-03-02
18:09:46.000000000 +0100
@@ -6,11 +6,19 @@
def subtest(request):
parent_test = request.node
def inner(func):
- item = Function(
- name=request.function.__name__ + '[]',
- parent=parent_test.parent,
- callobj=func,
- )
+ if hasattr(Function, "from_parent"):
+ item = Function.from_parent(
+ parent_test,
+ name=request.function.__name__ + '[]',
+ originalname=request.function.__name__,
+ callobj=func,
+ )
+ else:
+ item = Function(
+ name=request.function.__name__ + '[]',
+ parent=parent_test,
+ callobj=func
+ )
nextitem = parent_test # prevents pytest from tearing down module
fixtures
item.ihook.pytest_runtest_setup(item=item)
@@ -18,4 +26,5 @@
item.ihook.pytest_runtest_teardown(item=item, nextitem=nextitem)
+
return inner
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pytest-subtesthack-0.1.1/setup.py
new/pytest-subtesthack-0.1.2/setup.py
--- old/pytest-subtesthack-0.1.1/setup.py 2016-01-31 23:22:39.000000000
+0100
+++ new/pytest-subtesthack-0.1.2/setup.py 2021-03-02 18:09:46.000000000
+0100
@@ -4,7 +4,7 @@
name='pytest-subtesthack',
description='A hack to explicitly set up and tear down fixtures.',
long_description=open('README.rst').read(),
- version='0.1.1',
+ version='0.1.2',
license='Public domain',
author='Markus Unterwaditzer',
author_email='[email protected]',
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pytest-subtesthack-0.1.1/test_example.py
new/pytest-subtesthack-0.1.2/test_example.py
--- old/pytest-subtesthack-0.1.1/test_example.py 2016-01-31
23:22:39.000000000 +0100
+++ new/pytest-subtesthack-0.1.2/test_example.py 2021-03-02
18:09:46.000000000 +0100
@@ -1,6 +1,6 @@
import pytest
-from hypothesis import given
+from hypothesis import given, settings, HealthCheck
from hypothesis.strategies import text
@pytest.fixture(scope='module')
@@ -12,7 +12,7 @@
outer_thing = thing
@subtest
def test_inner(tmpdir, thing):
- # A fresh tmpdir is created for each run of test_foo. This is not
+ # A fresh tmpdir is created for each run of `test_inner`. This is not
# the case if the tmpdir fixture is required in `test_foo`, in that
# case test state would be leaked.
@@ -22,3 +22,8 @@
assert not tmpdir.listdir()
tmpdir.join('lol').write(repr(s))
+
+try:
+ test_foo =
settings(suppress_health_check=[HealthCheck.function_scoped_fixture])(test_foo)
# type: ignore
+except AttributeError:
+ pass
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pytest-subtesthack-0.1.1/tox.ini
new/pytest-subtesthack-0.1.2/tox.ini
--- old/pytest-subtesthack-0.1.1/tox.ini 2016-01-31 23:22:39.000000000
+0100
+++ new/pytest-subtesthack-0.1.2/tox.ini 2021-03-02 18:09:46.000000000
+0100
@@ -1,5 +1,17 @@
+[tox]
+envlist=
+ {py27,pypy,py34,py35,py36,py37,py38}-pytest43
+ {py36,py37,py38}-pytest{50,51,52,60,61}
+
[testenv]
+
deps =
- pytest
+
+ pytest43: pytest~=4.3.0
+ pytest50: pytest~=5.0.0
+ pytest51: pytest~=5.1.0
+ pytest52: pytest~=5.2.0
+ pytest60: pytest~=6.0.0
+ pytest61: pytest~=6.1.0
hypothesis
commands = py.test []