Skip to content

Instantly share code, notes, and snippets.

@damian1996
Created April 2, 2018 13:32
Show Gist options
  • Save damian1996/4e42160ec97f532bd560a67d5dff8096 to your computer and use it in GitHub Desktop.
Save damian1996/4e42160ec97f532bd560a67d5dff8096 to your computer and use it in GitHub Desktop.
================================== FAILURES ===================================
__________________________ LatexBearTest.test_result __________________________
self = <tests.latex.LatexLintBearTest.LatexBearTest testMethod=test_result>
def setUp(self):
self.section = Section('name')
> self.uut = LatexLintBear(self.section, Queue())
tests\latex\LatexLintBearTest.py:30:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
C:\Python34-x64\lib\site-packages\coala_utils\decorators.py:429: in decorated
return function(*args, **kwargs)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <LatexLintBear linter object (wrapping 'chktex') at 0x97f16d8>
section = <Section object(aspects=None, contents=OrderedDict(), defaults=None, language=None, name='name') at 0x97f1908>
message_queue = <queue.Queue object at 0x00000000097F1320>, timeout = 0
@enforce_signature
def __init__(self,
section: Section,
message_queue,
timeout=0):
"""
Constructs a new bear.
:param section: The section object where bear settings are
contained.
:param message_queue: The queue object for messages. Can be ``None``.
:param timeout: The time the bear is allowed to run. To set no
time limit, use 0.
:raises TypeError: Raised when ``message_queue`` is no queue.
:raises RuntimeError: Raised when bear requirements are not fulfilled.
"""
Printer.__init__(self)
if message_queue is not None and not hasattr(message_queue, 'put'):
raise TypeError('message_queue has to be a Queue or None.')
self.section = section
self.message_queue = message_queue
self.timeout = timeout
self.setup_dependencies()
cp = type(self).check_prerequisites()
if cp is not True:
error_string = ('The bear ' + self.name +
' does not fulfill all requirements.')
if cp is not False:
error_string += ' ' + cp
self.err(error_string)
> raise RuntimeError(error_string)
E RuntimeError: The bear LatexLintBear does not fulfill all requirements. 'chktex' is not installed.
C:\Python34-x64\lib\site-packages\coalib\bears\Bear.py:264: RuntimeError
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment