public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-rstcheck-core] f43: feat: fix builds for f<45
@ 2026-08-20 13:19 Ankur Sinha
  0 siblings, 0 replies; only message in thread
From: Ankur Sinha @ 2026-08-20 13:19 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/python-rstcheck-core
Branch : f43
Commit : d8c104287d2094b4117286409d2c338f2a1865e2
Author : Ankur Sinha (Ankur Sinha Gmail) <sanjay.ankur@gmail.com>
Date   : 2026-08-20T14:17:41+01:00
Stats  : +29/-1 in 1 file(s)
URL    : https://src.fedoraproject.org/rpms/python-rstcheck-core/c/d8c104287d2094b4117286409d2c338f2a1865e2?branch=f43

Log:
feat: fix builds for f<45

---
diff --git a/python-rstcheck-core.spec b/python-rstcheck-core.spec
index 499a496..d562843 100644
--- a/python-rstcheck-core.spec
+++ b/python-rstcheck-core.spec
@@ -49,8 +49,36 @@ export SETUPTOOLS_SCM_PRETEND_VERSION=%{version}
 %pyproject_save_files rstcheck_core
 
 %check
+# Fails on F44
+#=================================== FAILURES ===================================
+#________ TestSourceChecker.test_include_directive_error_without_sphinx _________
+#
+#        @staticmethod
+#        @pytest.mark.skipif(_extras.SPHINX_INSTALLED, reason="Test without sphinx extra.")
+#        def test_include_directive_error_without_sphinx() -> None:
+#            """Test error on include directive with non-existing file when sphinx is missing."""
+#            source = """
+#    .. include:: doesnt_exist.rst
+#    """
+#
+#            result = list(checker.check_source(source))
+#
+#            assert len(result) > 0
+#>           assert '(ERROR/3) Problems with "include" directive path:' in result[0]["message"]
+#E           assert '(ERROR/3) Problems with "include" directive path:' in '(SEVERE/4) Problems with "include" directive path:'
+#
+#result     = [{'line_number': 2, 'message': '(SEVERE/4) Problems with "include" directive path:', 'source_origin': '<string>'}]
+#source     = '\n.. include:: doesnt_exist.rst\n'
+#
+#tests/checker_test.py:252: AssertionError
+%if 0%{?fedora} <= 45
+k="${k-}${k+ and }not test_include_directive_error_without_sphinx"
+%endif
+
 # https://github.com/rstcheck/rstcheck-core/issues/57
-%{pytest} -k "not test_check_python_returns_error_on_syntax_warning"
+k="${k-}${k+ and } not test_check_python_returns_error_on_syntax_warning"
+
+%{pytest} "${k:+-k $k}"
 
 %files -n python3-rstcheck-core -f %{pyproject_files}
 %license LICENSE

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-08-20 13:19 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-08-20 13:19 [rpms/python-rstcheck-core] f43: feat: fix builds for f<45 Ankur Sinha

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox