Skip to content

Regression

dariah_topics.postprocessing._show_mallet_document_topics (from nosetests)

Failing for the past 1 build (Since Failed#450 )
Took 2 ms.

Error Message

Failed doctest test for dariah_topics.postprocessing._show_mallet_document_topics
  File "/mnt/data/jenkins/workspace/DARIAH-Topics/dariah_topics/postprocessing.py", line 494, in _show_mallet_document_topics

----------------------------------------------------------------------
File "/mnt/data/jenkins/workspace/DARIAH-Topics/dariah_topics/postprocessing.py", line 506, in dariah_topics.postprocessing._show_mallet_document_topics
Failed example:
    with tempfile.NamedTemporaryFile(suffix='.txt') as tmpfile:
        tmpfile.write(b'0\tdocument_one.txt\t0.1\t0.2\n1\tdocument_two.txt\t0.4\t0.5') and True
        tmpfile.flush()
        _show_mallet_document_topics(tmpfile.name, index) #doctest: +NORMALIZE_WHITESPACE
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python3.5/doctest.py", line 1321, in __run
        compileflags, 1), test.globs)
      File "<doctest dariah_topics.postprocessing._show_mallet_document_topics[2]>", line 4, in <module>
        _show_mallet_document_topics(tmpfile.name, index) #doctest: +NORMALIZE_WHITESPACE
    TypeError: _show_mallet_document_topics() missing 1 required positional argument: 'easy_file_format'

Stacktrace

Traceback (most recent call last):
  File "/usr/lib/python3.5/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/usr/lib/python3.5/unittest/case.py", line 601, in run
    testMethod()
  File "/usr/lib/python3.5/doctest.py", line 2190, in runTest
    raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for dariah_topics.postprocessing._show_mallet_document_topics
  File "/mnt/data/jenkins/workspace/DARIAH-Topics/dariah_topics/postprocessing.py", line 494, in _show_mallet_document_topics

----------------------------------------------------------------------
File "/mnt/data/jenkins/workspace/DARIAH-Topics/dariah_topics/postprocessing.py", line 506, in dariah_topics.postprocessing._show_mallet_document_topics
Failed example:
    with tempfile.NamedTemporaryFile(suffix='.txt') as tmpfile:
        tmpfile.write(b'0\tdocument_one.txt\t0.1\t0.2\n1\tdocument_two.txt\t0.4\t0.5') and True
        tmpfile.flush()
        _show_mallet_document_topics(tmpfile.name, index) #doctest: +NORMALIZE_WHITESPACE
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python3.5/doctest.py", line 1321, in __run
        compileflags, 1), test.globs)
      File "<doctest dariah_topics.postprocessing._show_mallet_document_topics[2]>", line 4, in <module>
        _show_mallet_document_topics(tmpfile.name, index) #doctest: +NORMALIZE_WHITESPACE
    TypeError: _show_mallet_document_topics() missing 1 required positional argument: 'easy_file_format'