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 2022-09-19 16:04:14
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-pytest-subtesthack (Old)
 and      /work/SRC/openSUSE:Factory/.python-pytest-subtesthack.new.2083 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-pytest-subtesthack"

Mon Sep 19 16:04:14 2022 rev:4 rq:1004674 version:0.2.0

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/python-pytest-subtesthack/python-pytest-subtesthack.changes
      2021-03-03 18:35:15.715393672 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-pytest-subtesthack.new.2083/python-pytest-subtesthack.changes
    2022-09-19 16:04:24.758322806 +0200
@@ -1,0 +2,6 @@
+Fri Sep 16 19:31:14 UTC 2022 - Asha Sulaiman <ash15.sulai...@gmail.com>
+
+- update 0.1.2 to 0.2.0 
+  * fix for s390x
+  
+-------------------------------------------------------------------

Old:
----
  0.1.2.tar.gz

New:
----
  0.2.0.tar.gz

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

Other differences:
------------------
++++++ python-pytest-subtesthack.spec ++++++
--- /var/tmp/diff_new_pack.MVCnFP/_old  2022-09-19 16:04:25.366324431 +0200
+++ /var/tmp/diff_new_pack.MVCnFP/_new  2022-09-19 16:04:25.370324441 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-pytest-subtesthack
 #
-# Copyright (c) 2021 SUSE LLC
+# Copyright (c) 2022 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -18,7 +18,7 @@
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:           python-pytest-subtesthack
-Version:        0.1.2
+Version:        0.2.0
 Release:        0
 Summary:        A hack to explicitly set up and tear down fixtures
 License:        SUSE-Public-Domain

++++++ 0.1.2.tar.gz -> 0.2.0.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pytest-subtesthack-0.1.2/.gitignore 
new/pytest-subtesthack-0.2.0/.gitignore
--- old/pytest-subtesthack-0.1.2/.gitignore     2021-03-02 18:09:46.000000000 
+0100
+++ new/pytest-subtesthack-0.2.0/.gitignore     2022-07-16 15:29:20.000000000 
+0200
@@ -8,3 +8,5 @@
 dist
 .cache
 .hypothesis
+.envrc
+.venv
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pytest-subtesthack-0.1.2/README.rst 
new/pytest-subtesthack-0.2.0/README.rst
--- old/pytest-subtesthack-0.1.2/README.rst     2021-03-02 18:09:46.000000000 
+0100
+++ new/pytest-subtesthack-0.2.0/README.rst     2022-07-16 15:29:20.000000000 
+0200
@@ -14,4 +14,6 @@
 
     pip install pytest-subtesthack
 
+...though the plugin is 32 lines of code, consider vendoring it.
+
 See ``test_example.py`` for usage.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pytest-subtesthack-0.1.2/pytest_subtesthack.py 
new/pytest-subtesthack-0.2.0/pytest_subtesthack.py
--- old/pytest-subtesthack-0.1.2/pytest_subtesthack.py  2021-03-02 
18:09:46.000000000 +0100
+++ new/pytest-subtesthack-0.2.0/pytest_subtesthack.py  2022-07-16 
15:29:20.000000000 +0200
@@ -22,8 +22,10 @@
         nextitem = parent_test  # prevents pytest from tearing down module 
fixtures
 
         item.ihook.pytest_runtest_setup(item=item)
-        item.ihook.pytest_runtest_call(item=item)
-        item.ihook.pytest_runtest_teardown(item=item, nextitem=nextitem)
+        try:
+            item.ihook.pytest_runtest_call(item=item)
+        finally:
+            item.ihook.pytest_runtest_teardown(item=item, nextitem=nextitem)
 
 
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pytest-subtesthack-0.1.2/setup.py 
new/pytest-subtesthack-0.2.0/setup.py
--- old/pytest-subtesthack-0.1.2/setup.py       2021-03-02 18:09:46.000000000 
+0100
+++ new/pytest-subtesthack-0.2.0/setup.py       2022-07-16 15:29:20.000000000 
+0200
@@ -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.2',
+    version='0.2.0',
     license='Public domain',
     author='Markus Unterwaditzer',
     author_email='mar...@unterwaditzer.net',
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pytest-subtesthack-0.1.2/test_example.py 
new/pytest-subtesthack-0.2.0/test_example.py
--- old/pytest-subtesthack-0.1.2/test_example.py        2021-03-02 
18:09:46.000000000 +0100
+++ new/pytest-subtesthack-0.2.0/test_example.py        2022-07-16 
15:29:20.000000000 +0200
@@ -3,6 +3,8 @@
 from hypothesis import given, settings, HealthCheck
 from hypothesis.strategies import text
 
+pytest_plugins = ["pytester"]
+
 @pytest.fixture(scope='module')
 def thing():
     return object()
@@ -27,3 +29,32 @@
     test_foo = 
settings(suppress_health_check=[HealthCheck.function_scoped_fixture])(test_foo) 
 # type: ignore
 except AttributeError:
     pass
+
+
+def test_failure(pytester):
+    """Make sure test failures do not crash pytest."""
+
+    pytester.makepyfile(
+        """
+        import pytest
+
+        from hypothesis import given, settings, HealthCheck
+        from hypothesis.strategies import text
+
+        @pytest.fixture(scope='function')
+        def thing():
+            return object()
+
+        @given(s=text())
+        @settings(suppress_health_check=[HealthCheck.function_scoped_fixture])
+        def test_foo(subtest, s):
+            @subtest
+            def test_inner(thing):
+                assert s, "the string is empty"
+    """
+    )
+
+    result = pytester.runpytest()
+
+    result.assert_outcomes(failed=1)
+    result.stdout.fnmatch_lines(["FAILED test_failure.py::test_foo - 
AssertionError: the string is empty"])
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pytest-subtesthack-0.1.2/tox.ini 
new/pytest-subtesthack-0.2.0/tox.ini
--- old/pytest-subtesthack-0.1.2/tox.ini        2021-03-02 18:09:46.000000000 
+0100
+++ new/pytest-subtesthack-0.2.0/tox.ini        2022-07-16 15:29:20.000000000 
+0200
@@ -1,17 +1,10 @@
 [tox]
 envlist=
-    {py27,pypy,py34,py35,py36,py37,py38}-pytest43
-    {py36,py37,py38}-pytest{50,51,52,60,61}
+    {py36,py37,py38}-pytest{62}
 
 [testenv]
 
 deps =
-
-    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
+    pytest62: pytest~=6.2.0
     hypothesis
 commands = py.test []

Reply via email to