-
Notifications
You must be signed in to change notification settings - Fork 1
Description
author: chrisjsewell
created: 2020-08-09 18:28:58.067000
assigned: None
SF_url: https://sourceforge.net/p/docutils/bugs/403
I don't believe, there is any mention that pygments is a requirement for tests to pass.
But if not functional/tests/latex_memoir.py fails with many diffs
Even then, installing the latest pygments leads to a minor diff: a933b1c
So I'm not sure if only a specific version is supported?
commenter: tk0miya
posted: 2020-08-09 18:54:37.089000
title: #403 fix testing pygments dependency
I don't know about dependencies. But, about the diff, it seems the reason of diff comes python versions. The "print" is a keyword in python2 era. But it becomes a mere function since python3. So it becomes a name now. I guess it might go well if you invoke a testcase with python2.
Anyway, checking the output of pygments is too fragile. It often gets broken everytime pygments changes the highlighting rule. It is better to check only that the content is highlighted.