Regression
dariah_topics.postprocessing._show_mallet_document_topics (from nosetests)
Failing for the past 1 build
(Since Failed )
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 Expected: True first topic second topic document_one 0.1 0.2 document_two 0.4 0.5 Got: True document_one document_two first topic 0.1 0.4 second topic 0.2 0.5
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 Expected: True first topic second topic document_one 0.1 0.2 document_two 0.4 0.5 Got: True document_one document_two first topic 0.1 0.4 second topic 0.2 0.5