Package: src:rstcheck
Version: 6.1.2+~1.0.3-2
Severity: important
Tags: sid trixie ftbfs
User: debian-pyt...@lists.debian.org
Usertags: python3.12

With python3-defaults from experimental, the package fails its autopkg tests:

[...]
679s autopkgtest [14:22:15]: test run-core-tests: [-----------------------
680s ============================= test session starts ==============================
680s platform linux -- Python 3.12.1, pytest-7.4.4, pluggy-1.3.0
680s rootdir: /tmp/autopkgtest.LoiBMd/autopkgtest_tmp
680s plugins: mock-3.12.0
680s collected 458 items
680s
680s tests/test__docutils.py ....s..... [ 2%] 680s tests/test__extras.py .ss.s.s. [ 3%] 680s tests/test__sphinx.py s.s.ssssssss [ 6%] 680s tests/test_checker.py ..............ss.s..sss...ssssss...sss...........s [ 17%] 681s ..s.sF.............ss..ss..ss..ss.ss... [ 25%] 681s tests/test_config.py ................................................... [ 37%] 681s ...............................................................sssssssss [ 52%] 681s sssssssssssssss.....sss.....ssss.sss................... [ 64%] 681s tests/test_inline_config.py .................... [ 69%] 682s tests/test_runner.py ..ssssss................................... [ 78%] 682s tests/test_types.py .. [ 79%] 683s tests/integration_tests/test_file_checker.py ......................s..s. [ 84%] 683s s.........s..s.s. [ 88%] 686s tests/integration_tests/test_runner.py ..........................s..s.s. [ 95%] 686s ............s..s.s. [100%]
686s
686s =================================== FAILURES =================================== 686s ____ TestCodeBlockChecker.test_check_python_returns_error_on_syntax_warning ____
686s
686s         @staticmethod
686s @pytest.mark.skipif(sys.version_info < (3, 8), reason="Requires python3.8 or higher") 686s def test_check_python_returns_error_on_syntax_warning() -> None:
686s             """Test ``check_python`` returns error on SyntaxWarning.
686s
686s With python 3.8 a SyntaxWarning is logged for '"is" with literals'.
686s
686s             Context: https://github.com/rstcheck/rstcheck/issues/122
686s             """
686s             source = """
686s     if mystring is "ok":
686s         ...
686s     """
686s             cb_checker = checker.CodeBlockChecker("<string>")
686s
686s             result = list(cb_checker.check_python(source))
686s
686s             assert len(result) == 1
686s >           assert '"is" with a literal' in result[0]["message"]
686s E assert '"is" with a literal' in '"is" with \'str\' literal. Did you mean "=="?'
686s
686s tests/test_checker.py:735: AssertionError
686s =========================== short test summary info ============================ 686s FAILED tests/test_checker.py::TestCodeBlockChecker::test_check_python_returns_error_on_syntax_warning 686s ================== 1 failed, 362 passed, 95 skipped in 6.69s ===================
687s autopkgtest [14:22:23]: test run-core-tests: -----------------------]
687s autopkgtest [14:22:23]: test run-core-tests: - - - - - - - - - - results - - - - - - - - - -
687s run-core-tests       FAIL non-zero exit status 1

Reply via email to