Closed natsukium closed 10 months ago
Sorry for the late response. The issue flew under my radar.
The tested function is here. It is tried to parse the yaml source. All yaml errors are catched and converted into LintError
s which are no exceptions but just a custom type. All the LintError
s are printed by rstcheck at the end. So there are no errors to handle in the test.
The CI run (ubuntu py 3.11) just before the 1.2 release was green in all 6 cases. Will need to test on my local maschine, if I can reproduce your issue.
EDIT: fix GHA error in logs (was my browser)
The issue is that the test runs even when pyyaml is not installed. Therefore it fails. I added a skip condition in the linked PR so this issue should be fixed.
Because the base test tox env always had pyyaml installed this issue was not discovered in CI. In the PR I also remove yaml from the base test env and added a new one for testing with pyyaml.
Thank you!
To Dos
[X] I tested with the latest released version.
[X] I have checked the issues and think that this is not a duplicate.
[X] I added a very descriptive title to this issue.
Example Code (python)
Relevant log output
Description
I am not sure. Maybe this test expects an error but it does not handle the error.
Operating System
Linux
Operating System Details
No response
Python Version
3.11.5
rstcheck Version
1.2.0
Additional Context
No response