[issue28222] test_distutils fails
Berker Peksag
report at bugs.python.org
Sat Oct 1 23:41:30 EDT 2016
Berker Peksag added the comment:
I can reproduce it with the following dependencies:
$ pip list
docutils (0.12)
pip (8.1.2)
setuptools (27.1.2)
The test was added in issue 23063. Since the purpose of the test was testing a bug in _check_rst_data(), skipping it if pygments is not available wouldn't be an ideal solution.
We probably need to do something like:
if pygments is not None:
self.assertEqual(len(msgs), 0)
else:
self.assertEqual(len(msgs), 1)
self.assertEqual(
str(msgs[0][1]),
'Cannot analyze code. Pygments package not found.'
)
----------
nosy: +berker.peksag
versions: +Python 3.5, Python 3.6
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue28222>
_______________________________________
More information about the Python-bugs-list
mailing list