Failed
dariah_topics.preprocessing.save_sparse_bow (from nosetests)
Failing for the past 1 build
(Since Failed )
Error Message
Failed doctest test for dariah_topics.preprocessing.save_sparse_bow File "/mnt/data/jenkins/workspace/DARIAH-Topics/dariah_topics/preprocessing.py", line 560, in save_sparse_bow ---------------------------------------------------------------------- File "/mnt/data/jenkins/workspace/DARIAH-Topics/dariah_topics/preprocessing.py", line 580, in dariah_topics.preprocessing.save_sparse_bow Failed example: save_sparse_bow(sparse_bow, 'sparsebow') 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.preprocessing.save_sparse_bow[5]>", line 1, in <module> save_sparse_bow(sparse_bow, 'sparsebow') File "/mnt/data/jenkins/workspace/DARIAH-Topics/dariah_topics/preprocessing.py", line 592, in save_sparse_bow with open('.'.join([output_path, 'mm']), 'w', encoding="utf-8") as f: NameError: name 'output_path' is not defined ---------------------------------------------------------------------- File "/mnt/data/jenkins/workspace/DARIAH-Topics/dariah_topics/preprocessing.py", line 582, in dariah_topics.preprocessing.save_sparse_bow Failed example: os.path.isfile('sparsebow.mm') Expected: True Got: False
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.preprocessing.save_sparse_bow File "/mnt/data/jenkins/workspace/DARIAH-Topics/dariah_topics/preprocessing.py", line 560, in save_sparse_bow ---------------------------------------------------------------------- File "/mnt/data/jenkins/workspace/DARIAH-Topics/dariah_topics/preprocessing.py", line 580, in dariah_topics.preprocessing.save_sparse_bow Failed example: save_sparse_bow(sparse_bow, 'sparsebow') 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.preprocessing.save_sparse_bow[5]>", line 1, in <module> save_sparse_bow(sparse_bow, 'sparsebow') File "/mnt/data/jenkins/workspace/DARIAH-Topics/dariah_topics/preprocessing.py", line 592, in save_sparse_bow with open('.'.join([output_path, 'mm']), 'w', encoding="utf-8") as f: NameError: name 'output_path' is not defined ---------------------------------------------------------------------- File "/mnt/data/jenkins/workspace/DARIAH-Topics/dariah_topics/preprocessing.py", line 582, in dariah_topics.preprocessing.save_sparse_bow Failed example: os.path.isfile('sparsebow.mm') Expected: True Got: False