Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-pytest-subtests for 
openSUSE:Factory checked in at 2026-04-08 17:17:23
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-pytest-subtests (Old)
 and      /work/SRC/openSUSE:Factory/.python-pytest-subtests.new.21863 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-pytest-subtests"

Wed Apr  8 17:17:23 2026 rev:16 rq:1345145 version:0.15.0

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/python-pytest-subtests/python-pytest-subtests.changes
    2025-12-05 16:50:53.265963043 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-pytest-subtests.new.21863/python-pytest-subtests.changes
 2026-04-08 17:17:28.440222002 +0200
@@ -1,0 +2,7 @@
+Wed Apr  8 09:03:26 UTC 2026 - Dirk Müller <[email protected]>
+
+- update to 0.15.0:
+  * Added experimental --no-subtest-reports CLI option. This
+    disables subtests output unless it's a failed subtest.
+
+-------------------------------------------------------------------

Old:
----
  pytest_subtests-0.14.2.tar.gz

New:
----
  pytest_subtests-0.15.0.tar.gz

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

Other differences:
------------------
++++++ python-pytest-subtests.spec ++++++
--- /var/tmp/diff_new_pack.gT58Kg/_old  2026-04-08 17:17:29.216253907 +0200
+++ /var/tmp/diff_new_pack.gT58Kg/_new  2026-04-08 17:17:29.220254071 +0200
@@ -18,7 +18,7 @@
 
 %{?sle15_python_module_pythons}
 Name:           python-pytest-subtests
-Version:        0.14.2
+Version:        0.15.0
 Release:        0
 Summary:        Python unittest subTest() support and subtests fixture
 License:        MIT
@@ -30,11 +30,11 @@
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
 Requires:       python-attrs >= 19.2.0
-Requires:       python-pytest >= 7.0
+Requires:       python-pytest >= 7.4
 BuildArch:      noarch
 # SECTION test requirements
 BuildRequires:  %{python_module attrs >= 19.2.0}
-BuildRequires:  %{python_module pytest >= 7.0}
+BuildRequires:  %{python_module pytest >= 7.4}
 # /SECTION
 %python_subpackages
 

++++++ _scmsync.obsinfo ++++++
--- /var/tmp/diff_new_pack.gT58Kg/_old  2026-04-08 17:17:29.256255551 +0200
+++ /var/tmp/diff_new_pack.gT58Kg/_new  2026-04-08 17:17:29.260255716 +0200
@@ -1,6 +1,6 @@
-mtime: 1764225997
-commit: 5080062f5ec62892cdcb87abd9b00172be0e06601535d8a11397f0afc136b049
+mtime: 1775639031
+commit: 12aba85b37b0f625ce79f2efed238055230c2bd22de01311b2c7975888312d49
 url: https://src.opensuse.org/python-pytest/python-pytest-subtests.git
-revision: 5080062f5ec62892cdcb87abd9b00172be0e06601535d8a11397f0afc136b049
+revision: 12aba85b37b0f625ce79f2efed238055230c2bd22de01311b2c7975888312d49
 projectscmsync: https://src.opensuse.org/python-pytest/_ObsPrj.git
 

++++++ build.specials.obscpio ++++++

++++++ build.specials.obscpio ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/.gitignore new/.gitignore
--- old/.gitignore      1970-01-01 01:00:00.000000000 +0100
+++ new/.gitignore      2026-04-08 11:04:15.000000000 +0200
@@ -0,0 +1 @@
+.osc

++++++ pytest_subtests-0.14.2.tar.gz -> pytest_subtests-0.15.0.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pytest_subtests-0.14.2/.github/workflows/deploy.yml 
new/pytest_subtests-0.15.0/.github/workflows/deploy.yml
--- old/pytest_subtests-0.14.2/.github/workflows/deploy.yml     2025-06-13 
12:49:12.000000000 +0200
+++ new/pytest_subtests-0.15.0/.github/workflows/deploy.yml     2025-10-20 
18:25:25.000000000 +0200
@@ -16,10 +16,10 @@
       SETUPTOOLS_SCM_PRETEND_VERSION: ${{ github.event.inputs.version }}
 
     steps:
-    - uses: actions/checkout@v4
+    - uses: actions/checkout@v5
 
     - name: Build and Check Package
-      uses: hynek/[email protected]
+      uses: hynek/[email protected]
 
   deploy:
     needs: package
@@ -30,16 +30,16 @@
       contents: write  # For tag.
 
     steps:
-    - uses: actions/checkout@v4
+    - uses: actions/checkout@v5
 
     - name: Download Package
-      uses: actions/download-artifact@v4
+      uses: actions/download-artifact@v5
       with:
         name: Packages
         path: dist
 
     - name: Publish package to PyPI
-      uses: pypa/[email protected]
+      uses: pypa/[email protected]
       with:
         attestations: true
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pytest_subtests-0.14.2/.github/workflows/test.yml 
new/pytest_subtests-0.15.0/.github/workflows/test.yml
--- old/pytest_subtests-0.14.2/.github/workflows/test.yml       2025-06-13 
12:49:12.000000000 +0200
+++ new/pytest_subtests-0.15.0/.github/workflows/test.yml       2025-10-20 
18:25:25.000000000 +0200
@@ -21,9 +21,9 @@
   package:
     runs-on: ubuntu-latest
     steps:
-      - uses: actions/checkout@v4
+      - uses: actions/checkout@v5
       - name: Build and Check Package
-        uses: hynek/[email protected]
+        uses: hynek/[email protected]
 
   test:
     needs: [package]
@@ -40,16 +40,16 @@
             tox_env: "pytest7-py"
 
     steps:
-    - uses: actions/checkout@v4
+    - uses: actions/checkout@v5
 
     - name: Download Package
-      uses: actions/download-artifact@v4
+      uses: actions/download-artifact@v5
       with:
         name: Packages
         path: dist
 
     - name: Set up Python
-      uses: actions/setup-python@v5
+      uses: actions/setup-python@v6
       with:
         python-version: ${{ matrix.python }}
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pytest_subtests-0.14.2/.pre-commit-config.yaml 
new/pytest_subtests-0.15.0/.pre-commit-config.yaml
--- old/pytest_subtests-0.14.2/.pre-commit-config.yaml  2025-06-13 
12:49:12.000000000 +0200
+++ new/pytest_subtests-0.15.0/.pre-commit-config.yaml  2025-10-20 
18:25:25.000000000 +0200
@@ -1,22 +1,22 @@
 repos:
--   repo: https://github.com/psf/black
-    rev: 25.1.0
+-   repo: https://github.com/psf/black-pre-commit-mirror
+    rev: 25.9.0
     hooks:
     -   id: black
         args: [--safe, --quiet]
 -   repo: https://github.com/pre-commit/pre-commit-hooks
-    rev: v5.0.0
+    rev: v6.0.0
     hooks:
     -   id: trailing-whitespace
     -   id: end-of-file-fixer
     -   id: check-yaml
     -   id: debug-statements
 -   repo: https://github.com/asottile/reorder-python-imports
-    rev: v3.15.0
+    rev: v3.16.0
     hooks:
     -   id: reorder-python-imports
 -   repo: https://github.com/pre-commit/mirrors-mypy
-    rev: v1.16.0
+    rev: v1.18.2
     hooks:
       - id: mypy
         files: ^(src|tests)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pytest_subtests-0.14.2/CHANGELOG.rst 
new/pytest_subtests-0.15.0/CHANGELOG.rst
--- old/pytest_subtests-0.14.2/CHANGELOG.rst    2025-06-13 12:49:12.000000000 
+0200
+++ new/pytest_subtests-0.15.0/CHANGELOG.rst    2025-10-20 18:25:25.000000000 
+0200
@@ -1,6 +1,16 @@
 CHANGELOG
 =========
 
+0.15.0
+------
+
+*2025-10-20*
+
+* Added experimental ``--no-subtest-reports`` CLI option. This disables
+  subtests output unless it's a failed subtest. (`#198`_)
+
+.. _#198: https://github.com/pytest-dev/pytest-subtests/pull/198
+
 0.14.2
 ------
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pytest_subtests-0.14.2/PKG-INFO 
new/pytest_subtests-0.15.0/PKG-INFO
--- old/pytest_subtests-0.14.2/PKG-INFO 2025-06-13 12:49:16.096734800 +0200
+++ new/pytest_subtests-0.15.0/PKG-INFO 2025-10-20 18:25:29.440111600 +0200
@@ -1,6 +1,6 @@
 Metadata-Version: 2.4
 Name: pytest-subtests
-Version: 0.14.2
+Version: 0.15.0
 Summary: unittest subTest() support and subtests fixture
 Home-page: https://github.com/pytest-dev/pytest-subtests
 Author: Bruno Oliveira
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pytest_subtests-0.14.2/src/pytest_subtests/plugin.py 
new/pytest_subtests-0.15.0/src/pytest_subtests/plugin.py
--- old/pytest_subtests-0.14.2/src/pytest_subtests/plugin.py    2025-06-13 
12:49:12.000000000 +0200
+++ new/pytest_subtests-0.15.0/src/pytest_subtests/plugin.py    2025-10-20 
18:25:25.000000000 +0200
@@ -46,6 +46,13 @@
         default=False,
         help="Disables subtest output 'dots' in non-verbose mode 
(EXPERIMENTAL)",
     )
+    group.addoption(
+        "--no-subtests-reports",
+        action="store_true",
+        dest="no_subtests_reports",
+        default=False,
+        help="Disables subtest output unless it's a failed subtest 
(EXPERIMENTAL)",
+    )
 
 
 @attr.s
@@ -459,9 +466,12 @@
 
     outcome = report.outcome
     description = report.sub_test_description()
+    no_output = ("", "", "")
 
     if hasattr(report, "wasxfail"):
-        if outcome == "skipped":
+        if config.option.no_subtests_reports and outcome != "skipped":
+            return no_output
+        elif outcome == "skipped":
             category = "xfailed"
             short = "y"  # x letter is used for regular xfail, y for subtest 
xfail
             status = "SUBXFAIL"
@@ -476,6 +486,9 @@
             return None
         short = "" if config.option.no_subtests_shortletter else short
         return f"subtests {category}", short, f"{description} {status}"
+
+    if config.option.no_subtests_reports and outcome != "failed":
+        return no_output
     elif report.passed:
         short = "" if config.option.no_subtests_shortletter else ","
         return f"subtests {outcome}", short, f"{description} SUBPASS"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/pytest_subtests-0.14.2/src/pytest_subtests.egg-info/PKG-INFO 
new/pytest_subtests-0.15.0/src/pytest_subtests.egg-info/PKG-INFO
--- old/pytest_subtests-0.14.2/src/pytest_subtests.egg-info/PKG-INFO    
2025-06-13 12:49:16.000000000 +0200
+++ new/pytest_subtests-0.15.0/src/pytest_subtests.egg-info/PKG-INFO    
2025-10-20 18:25:29.000000000 +0200
@@ -1,6 +1,6 @@
 Metadata-Version: 2.4
 Name: pytest-subtests
-Version: 0.14.2
+Version: 0.15.0
 Summary: unittest subTest() support and subtests fixture
 Home-page: https://github.com/pytest-dev/pytest-subtests
 Author: Bruno Oliveira
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pytest_subtests-0.14.2/tests/test_subtests.py 
new/pytest_subtests-0.15.0/tests/test_subtests.py
--- old/pytest_subtests-0.14.2/tests/test_subtests.py   2025-06-13 
12:49:12.000000000 +0200
+++ new/pytest_subtests-0.15.0/tests/test_subtests.py   2025-10-20 
18:25:25.000000000 +0200
@@ -156,6 +156,62 @@
         expected_lines += ["* 1 passed *"]
         result.stdout.fnmatch_lines(expected_lines)
 
+    def test_no_subtests_reports(
+        self, pytester: pytest.Pytester, mode: Literal["normal", "xdist"]
+    ) -> None:
+        pytester.makepyfile(
+            """
+            import pytest
+
+            def test_foo(subtests):
+                for i in range(5):
+                    with subtests.test(msg="custom", i=i):
+                        pass
+        """
+        )
+        # Without `--no-subtests-reports`, subtests are reported normally.
+        result = pytester.runpytest("-v")
+        result.stdout.fnmatch_lines(
+            [
+                "*collected 1 item*",
+                "test_no_subtests_reports.py::test_foo * (i=0) SUBPASS*",
+                "*test_no_subtests_reports.py::test_foo PASSED*",
+                "* 1 passed, 5 subtests passed in*",
+            ]
+        )
+
+        # With `--no-subtests-reports`, passing subtests are no longer 
reported.
+        result = pytester.runpytest("-v", "--no-subtests-reports")
+        result.stdout.fnmatch_lines(
+            [
+                "*collected 1 item*",
+                "*test_no_subtests_reports.py::test_foo PASSED*",
+                "* 1 passed in*",
+            ]
+        )
+        result.stdout.no_fnmatch_line("*SUBPASS*")
+
+        # Rewrite the test file so the tests fail. Even with the flag, failed 
subtests are still reported.
+        pytester.makepyfile(
+            """
+            import pytest
+
+            def test_foo(subtests):
+                for i in range(5):
+                    with subtests.test(msg="custom", i=i):
+                        assert False
+        """
+        )
+        result = pytester.runpytest("-v", "--no-subtests-reports")
+        result.stdout.fnmatch_lines(
+            [
+                "*collected 1 item*",
+                "test_no_subtests_reports.py::test_foo * (i=0) SUBFAIL*",
+                "*test_no_subtests_reports.py::test_foo PASSED*",
+                "* 5 failed, 1 passed in*",
+            ]
+        )
+
 
 class TestSubTest:
     """

Reply via email to