docutils >= 0.22 (gh#twolfson/restructuredtext-lint!64). - Add skip-failing-test-66.patch skipping failing test (gh#twolfson/restructuredtext-lint#66) fixing failing test test.test.TestRestructuredtextLintCLI.test_level_fail - Convert to pip-based build and libalternatives - Update to version 1.4.0 - Fixed non-zero exit code for missing files/directories. Fixes #58 - Update to version 1.3.2 - Added "Other tools" section to README. Replacement for #57 - Update to version 1.3.1 - Removed .pyc files from distribution. Fixes #56 - %python3_only -> %python_alternative - Removed no longer needed python37.patch - Update to v1.3.0 * Added Python 3.7 support - Remove unused dependency on PyYAML - Update to v1.2.2 * Dropped PyYAML dev dependency by simplifying one test case - Freshen python37.patch - Add patch to build with python 3.7: * python37.patch - Update to 1.2.1: * Added directory support via @dhruvsomani in #48. Fixes #38 - Remove superfluous devel dependency for noarch package - Update to 1.1.3 * Updated documentation and typos - spec file cleanups - Initial version OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-restructuredtext_lint?expand=0&rev=19
35 lines
1.6 KiB
Diff
35 lines
1.6 KiB
Diff
---
|
|
restructuredtext_lint/test/test.py | 7 +++----
|
|
1 file changed, 3 insertions(+), 4 deletions(-)
|
|
|
|
Index: restructuredtext_lint-1.4.0/restructuredtext_lint/test/test.py
|
|
===================================================================
|
|
--- restructuredtext_lint-1.4.0.orig/restructuredtext_lint/test/test.py 2022-02-24 06:50:23.000000000 +0100
|
|
+++ restructuredtext_lint-1.4.0/restructuredtext_lint/test/test.py 2025-10-30 11:37:31.488257443 +0100
|
|
@@ -4,7 +4,7 @@
|
|
import subprocess
|
|
import sys
|
|
import textwrap
|
|
-from unittest import TestCase
|
|
+from unittest import TestCase, skip
|
|
|
|
import restructuredtext_lint
|
|
|
|
@@ -201,14 +201,13 @@
|
|
# This is the expected behaviour we are checking:
|
|
# $ rst-lint --level warning second_short_heading.rst ; echo "Return code $?"
|
|
# WARNING second_short_heading.rst:6 Title underline too short.
|
|
- # WARNING second_short_heading.rst:6 Title underline too short.
|
|
# Return code 2
|
|
with self.assertRaises(subprocess.CalledProcessError) as e:
|
|
subprocess.check_output((sys.executable, rst_lint_path, '--level', 'warning', warning_rst),
|
|
universal_newlines=True)
|
|
output = str(e.exception.output)
|
|
- self.assertEqual(output.count('\n'), 2, output)
|
|
- self.assertEqual(output.count('WARNING'), 2, output)
|
|
+ self.assertEqual(output.count('\n'), 1, output)
|
|
+ self.assertEqual(output.count('WARNING'), 1, output)
|
|
# The expected 2 warnings should be treated as failing
|
|
self.assertEqual(e.exception.returncode, 2)
|
|
|