Skip to content

Failed

dariah_topics.preprocessing.read_from_csv (from nosetests)

Failing for the past 1 build (Since Failed#166 )
Took 19 ms.

Error Message

Failed doctest test for dariah_topics.preprocessing.read_from_csv
  File "/mnt/data/jenkins/workspace/DARIAH-Topics/dariah_topics/preprocessing.py", line 155, in read_from_csv

----------------------------------------------------------------------
File "/mnt/data/jenkins/workspace/DARIAH-Topics/dariah_topics/preprocessing.py", line 187, in dariah_topics.preprocessing.read_from_csv
Failed example:
    doclist = create_document_list('corpus_csv')
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.read_from_csv[1]>", line 1, in <module>
        doclist = create_document_list('corpus_csv')
      File "/mnt/data/jenkins/workspace/DARIAH-Topics/dariah_topics/preprocessing.py", line 79, in create_document_list
        "The pattern %s does not match any files.", pattern)
    FileNotFoundError: [Errno The pattern %s does not match any files.] corpus_csv/*.txt
----------------------------------------------------------------------
File "/mnt/data/jenkins/workspace/DARIAH-Topics/dariah_topics/preprocessing.py", line 188, in dariah_topics.preprocessing.read_from_csv
Failed example:
    list(read_from_csv(doclist))[0][:4] # 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.preprocessing.read_from_csv[2]>", line 1, in <module>
        list(read_from_csv(doclist))[0][:4] # doctest: +NORMALIZE_WHITESPACE
    NameError: name 'doclist' is not defined

-------------------- >> begin captured logging << --------------------
preprocessing: INFO: Accessing CSV documents ...
preprocessing: INFO: Creating document list from TXT files ...
--------------------- >> end captured logging << ---------------------

Stacktrace

  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()))
Failed doctest test for dariah_topics.preprocessing.read_from_csv
  File "/mnt/data/jenkins/workspace/DARIAH-Topics/dariah_topics/preprocessing.py", line 155, in read_from_csv

----------------------------------------------------------------------
File "/mnt/data/jenkins/workspace/DARIAH-Topics/dariah_topics/preprocessing.py", line 187, in dariah_topics.preprocessing.read_from_csv
Failed example:
    doclist = create_document_list('corpus_csv')
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.read_from_csv[1]>", line 1, in <module>
        doclist = create_document_list('corpus_csv')
      File "/mnt/data/jenkins/workspace/DARIAH-Topics/dariah_topics/preprocessing.py", line 79, in create_document_list
        "The pattern %s does not match any files.", pattern)
    FileNotFoundError: [Errno The pattern %s does not match any files.] corpus_csv/*.txt
----------------------------------------------------------------------
File "/mnt/data/jenkins/workspace/DARIAH-Topics/dariah_topics/preprocessing.py", line 188, in dariah_topics.preprocessing.read_from_csv
Failed example:
    list(read_from_csv(doclist))[0][:4] # 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.preprocessing.read_from_csv[2]>", line 1, in <module>
        list(read_from_csv(doclist))[0][:4] # doctest: +NORMALIZE_WHITESPACE
    NameError: name 'doclist' is not defined

-------------------- >> begin captured logging << --------------------
preprocessing: INFO: Accessing CSV documents ...
preprocessing: INFO: Creating document list from TXT files ...
--------------------- >> end captured logging << ---------------------