← Back to team overview

zeitgeist team mailing list archive

[Bug 740912] [NEW] failing doctest: test-engine-extension.rst

 

Public bug reported:

As of today, I have (not sure what's going wrong here):

======================================================================
FAIL: /media/sda7/zeitgeist/fix_del_cache/test/test-engine-extension.rst
Doctest: test-engine-extension.rst
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.7/doctest.py", line 2166, in runTest
    raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for test-engine-extension.rst
  File "/media/sda7/zeitgeist/fix_del_cache/test/test-engine-extension.rst", line 0

----------------------------------------------------------------------
File "/media/sda7/zeitgeist/fix_del_cache/test/test-engine-extension.rst", line 14, in test-engine-extension.rst
Failed example:
    engine = ZeitgeistEngine()
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1254, in __run
        compileflags, 1) in test.globs
      File "<doctest test-engine-extension.rst[1]>", line 1, in <module>
        engine = ZeitgeistEngine()
      File "/media/sda7/zeitgeist/fix_del_cache/test/../_zeitgeist/engine/main.py", line 101, in __init__
        self._cursor = cursor = get_default_cursor()
      File "/media/sda7/zeitgeist/fix_del_cache/test/../_zeitgeist/engine/sql.py", line 419, in get_default_cursor
        _cursor = create_db(dbfile)
      File "/media/sda7/zeitgeist/fix_del_cache/test/../_zeitgeist/engine/sql.py", line 162, in create_db
        cursor.execute("PRAGMA journal_mode = DELETE")
      File "/media/sda7/zeitgeist/fix_del_cache/test/../_zeitgeist/engine/sql.py", line 70, in execute
        return super(UnicodeCursor, self).execute(statement, parameters)
    OperationalError: database is locked
----------------------------------------------------------------------
File "/media/sda7/zeitgeist/fix_del_cache/test/test-engine-extension.rst", line 15, in test-engine-extension.rst
Failed example:
    len(engine.extensions)
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1254, in __run
        compileflags, 1) in test.globs
      File "<doctest test-engine-extension.rst[2]>", line 1, in <module>
        len(engine.extensions)
    NameError: name 'engine' is not defined
----------------------------------------------------------------------
File "/media/sda7/zeitgeist/fix_del_cache/test/test-engine-extension.rst", line 47, in test-engine-extension.rst
Failed example:
    engine.extensions.load(SampleExtension)
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1254, in __run
        compileflags, 1) in test.globs
      File "<doctest test-engine-extension.rst[5]>", line 1, in <module>
        engine.extensions.load(SampleExtension)
    NameError: name 'engine' is not defined
----------------------------------------------------------------------
File "/media/sda7/zeitgeist/fix_del_cache/test/test-engine-extension.rst", line 48, in test-engine-extension.rst
Failed example:
    len(engine.extensions)
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1254, in __run
        compileflags, 1) in test.globs
      File "<doctest test-engine-extension.rst[6]>", line 1, in <module>
        len(engine.extensions)
    NameError: name 'engine' is not defined
----------------------------------------------------------------------
File "/media/sda7/zeitgeist/fix_del_cache/test/test-engine-extension.rst", line 50, in test-engine-extension.rst
Failed example:
    print engine.extensions
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1254, in __run
        compileflags, 1) in test.globs
      File "<doctest test-engine-extension.rst[7]>", line 1, in <module>
        print engine.extensions
    NameError: name 'engine' is not defined
----------------------------------------------------------------------
File "/media/sda7/zeitgeist/fix_del_cache/test/test-engine-extension.rst", line 52, in test-engine-extension.rst
Failed example:
    sorted(engine.extensions.methods)
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1254, in __run
        compileflags, 1) in test.globs
      File "<doctest test-engine-extension.rst[8]>", line 1, in <module>
        sorted(engine.extensions.methods)
    NameError: name 'engine' is not defined
----------------------------------------------------------------------
File "/media/sda7/zeitgeist/fix_del_cache/test/test-engine-extension.rst", line 60, in test-engine-extension.rst
Failed example:
    engine.extensions.add_value(5)
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1254, in __run
        compileflags, 1) in test.globs
      File "<doctest test-engine-extension.rst[9]>", line 1, in <module>
        engine.extensions.add_value(5)
    NameError: name 'engine' is not defined
----------------------------------------------------------------------
File "/media/sda7/zeitgeist/fix_del_cache/test/test-engine-extension.rst", line 62, in test-engine-extension.rst
Failed example:
    engine.extensions.add_value(1)
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1254, in __run
        compileflags, 1) in test.globs
      File "<doctest test-engine-extension.rst[10]>", line 1, in <module>
        engine.extensions.add_value(1)
    NameError: name 'engine' is not defined
----------------------------------------------------------------------
File "/media/sda7/zeitgeist/fix_del_cache/test/test-engine-extension.rst", line 64, in test-engine-extension.rst
Failed example:
    engine.extensions.get_engine() is not None
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1254, in __run
        compileflags, 1) in test.globs
      File "<doctest test-engine-extension.rst[11]>", line 1, in <module>
        engine.extensions.get_engine() is not None
    NameError: name 'engine' is not defined
----------------------------------------------------------------------
File "/media/sda7/zeitgeist/fix_del_cache/test/test-engine-extension.rst", line 70, in test-engine-extension.rst
Failed example:
    engine.extensions.internal_method()
Expected:
    Traceback (most recent call last):
      ...
    AttributeError: ExtensionsCollection instance has no attribute 'internal_method'
Got:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1254, in __run
        compileflags, 1) in test.globs
      File "<doctest test-engine-extension.rst[12]>", line 1, in <module>
        engine.extensions.internal_method()
    NameError: name 'engine' is not defined
----------------------------------------------------------------------
File "/media/sda7/zeitgeist/fix_del_cache/test/test-engine-extension.rst", line 77, in test-engine-extension.rst
Failed example:
    engine.extensions.unload(SampleExtension)
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1254, in __run
        compileflags, 1) in test.globs
      File "<doctest test-engine-extension.rst[13]>", line 1, in <module>
        engine.extensions.unload(SampleExtension)
    NameError: name 'engine' is not defined
----------------------------------------------------------------------
File "/media/sda7/zeitgeist/fix_del_cache/test/test-engine-extension.rst", line 78, in test-engine-extension.rst
Failed example:
    sorted(engine.extensions.methods)
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1254, in __run
        compileflags, 1) in test.globs
      File "<doctest test-engine-extension.rst[14]>", line 1, in <module>
        sorted(engine.extensions.methods)
    NameError: name 'engine' is not defined
----------------------------------------------------------------------
File "/media/sda7/zeitgeist/fix_del_cache/test/test-engine-extension.rst", line 83, in test-engine-extension.rst
Failed example:
    engine.extensions.add_value(5)
Expected:
    Traceback (most recent call last):
      ...
    AttributeError: ExtensionsCollection instance has no attribute 'add_value'
Got:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1254, in __run
        compileflags, 1) in test.globs
      File "<doctest test-engine-extension.rst[15]>", line 1, in <module>
        engine.extensions.add_value(5)
    NameError: name 'engine' is not defined
----------------------------------------------------------------------
File "/media/sda7/zeitgeist/fix_del_cache/test/test-engine-extension.rst", line 91, in test-engine-extension.rst
Failed example:
    engine.extensions.load(set) # doctest:+ELLIPSIS
Expected:
    Traceback (most recent call last):
      ...
    TypeError: Unable to load <type 'set'>, all extensions must be subclasses of <class '...Extension'>
Got:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1254, in __run
        compileflags, 1) in test.globs
      File "<doctest test-engine-extension.rst[16]>", line 1, in <module>
        engine.extensions.load(set) # doctest:+ELLIPSIS
    NameError: name 'engine' is not defined
----------------------------------------------------------------------
File "/media/sda7/zeitgeist/fix_del_cache/test/test-engine-extension.rst", line 98, in test-engine-extension.rst
Failed example:
    engine.extensions.unload()
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1254, in __run
        compileflags, 1) in test.globs
      File "<doctest test-engine-extension.rst[17]>", line 1, in <module>
        engine.extensions.unload()
    NameError: name 'engine' is not defined
----------------------------------------------------------------------
File "/media/sda7/zeitgeist/fix_del_cache/test/test-engine-extension.rst", line 99, in test-engine-extension.rst
Failed example:
    len(engine.extensions)
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1254, in __run
        compileflags, 1) in test.globs
      File "<doctest test-engine-extension.rst[18]>", line 1, in <module>
        len(engine.extensions)
    NameError: name 'engine' is not defined
----------------------------------------------------------------------
File "/media/sda7/zeitgeist/fix_del_cache/test/test-engine-extension.rst", line 104, in test-engine-extension.rst
Failed example:
    engine.close()
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1254, in __run
        compileflags, 1) in test.globs
      File "<doctest test-engine-extension.rst[19]>", line 1, in <module>
        engine.close()
    NameError: name 'engine' is not defined


----------------------------------------------------------------------

** Affects: zeitgeist
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Zeitgeist
Framework Team, which is subscribed to Zeitgeist Framework.
https://bugs.launchpad.net/bugs/740912

Title:
  failing doctest: test-engine-extension.rst

Status in Zeitgeist Framework:
  New

Bug description:
  As of today, I have (not sure what's going wrong here):

  ======================================================================
  FAIL: /media/sda7/zeitgeist/fix_del_cache/test/test-engine-extension.rst
  Doctest: test-engine-extension.rst
  ----------------------------------------------------------------------
  Traceback (most recent call last):
    File "/usr/lib/python2.7/doctest.py", line 2166, in runTest
      raise self.failureException(self.format_failure(new.getvalue()))
  AssertionError: Failed doctest test for test-engine-extension.rst
    File "/media/sda7/zeitgeist/fix_del_cache/test/test-engine-extension.rst", line 0

  ----------------------------------------------------------------------
  File "/media/sda7/zeitgeist/fix_del_cache/test/test-engine-extension.rst", line 14, in test-engine-extension.rst
  Failed example:
      engine = ZeitgeistEngine()
  Exception raised:
      Traceback (most recent call last):
        File "/usr/lib/python2.7/doctest.py", line 1254, in __run
          compileflags, 1) in test.globs
        File "<doctest test-engine-extension.rst[1]>", line 1, in <module>
          engine = ZeitgeistEngine()
        File "/media/sda7/zeitgeist/fix_del_cache/test/../_zeitgeist/engine/main.py", line 101, in __init__
          self._cursor = cursor = get_default_cursor()
        File "/media/sda7/zeitgeist/fix_del_cache/test/../_zeitgeist/engine/sql.py", line 419, in get_default_cursor
          _cursor = create_db(dbfile)
        File "/media/sda7/zeitgeist/fix_del_cache/test/../_zeitgeist/engine/sql.py", line 162, in create_db
          cursor.execute("PRAGMA journal_mode = DELETE")
        File "/media/sda7/zeitgeist/fix_del_cache/test/../_zeitgeist/engine/sql.py", line 70, in execute
          return super(UnicodeCursor, self).execute(statement, parameters)
      OperationalError: database is locked
  ----------------------------------------------------------------------
  File "/media/sda7/zeitgeist/fix_del_cache/test/test-engine-extension.rst", line 15, in test-engine-extension.rst
  Failed example:
      len(engine.extensions)
  Exception raised:
      Traceback (most recent call last):
        File "/usr/lib/python2.7/doctest.py", line 1254, in __run
          compileflags, 1) in test.globs
        File "<doctest test-engine-extension.rst[2]>", line 1, in <module>
          len(engine.extensions)
      NameError: name 'engine' is not defined
  ----------------------------------------------------------------------
  File "/media/sda7/zeitgeist/fix_del_cache/test/test-engine-extension.rst", line 47, in test-engine-extension.rst
  Failed example:
      engine.extensions.load(SampleExtension)
  Exception raised:
      Traceback (most recent call last):
        File "/usr/lib/python2.7/doctest.py", line 1254, in __run
          compileflags, 1) in test.globs
        File "<doctest test-engine-extension.rst[5]>", line 1, in <module>
          engine.extensions.load(SampleExtension)
      NameError: name 'engine' is not defined
  ----------------------------------------------------------------------
  File "/media/sda7/zeitgeist/fix_del_cache/test/test-engine-extension.rst", line 48, in test-engine-extension.rst
  Failed example:
      len(engine.extensions)
  Exception raised:
      Traceback (most recent call last):
        File "/usr/lib/python2.7/doctest.py", line 1254, in __run
          compileflags, 1) in test.globs
        File "<doctest test-engine-extension.rst[6]>", line 1, in <module>
          len(engine.extensions)
      NameError: name 'engine' is not defined
  ----------------------------------------------------------------------
  File "/media/sda7/zeitgeist/fix_del_cache/test/test-engine-extension.rst", line 50, in test-engine-extension.rst
  Failed example:
      print engine.extensions
  Exception raised:
      Traceback (most recent call last):
        File "/usr/lib/python2.7/doctest.py", line 1254, in __run
          compileflags, 1) in test.globs
        File "<doctest test-engine-extension.rst[7]>", line 1, in <module>
          print engine.extensions
      NameError: name 'engine' is not defined
  ----------------------------------------------------------------------
  File "/media/sda7/zeitgeist/fix_del_cache/test/test-engine-extension.rst", line 52, in test-engine-extension.rst
  Failed example:
      sorted(engine.extensions.methods)
  Exception raised:
      Traceback (most recent call last):
        File "/usr/lib/python2.7/doctest.py", line 1254, in __run
          compileflags, 1) in test.globs
        File "<doctest test-engine-extension.rst[8]>", line 1, in <module>
          sorted(engine.extensions.methods)
      NameError: name 'engine' is not defined
  ----------------------------------------------------------------------
  File "/media/sda7/zeitgeist/fix_del_cache/test/test-engine-extension.rst", line 60, in test-engine-extension.rst
  Failed example:
      engine.extensions.add_value(5)
  Exception raised:
      Traceback (most recent call last):
        File "/usr/lib/python2.7/doctest.py", line 1254, in __run
          compileflags, 1) in test.globs
        File "<doctest test-engine-extension.rst[9]>", line 1, in <module>
          engine.extensions.add_value(5)
      NameError: name 'engine' is not defined
  ----------------------------------------------------------------------
  File "/media/sda7/zeitgeist/fix_del_cache/test/test-engine-extension.rst", line 62, in test-engine-extension.rst
  Failed example:
      engine.extensions.add_value(1)
  Exception raised:
      Traceback (most recent call last):
        File "/usr/lib/python2.7/doctest.py", line 1254, in __run
          compileflags, 1) in test.globs
        File "<doctest test-engine-extension.rst[10]>", line 1, in <module>
          engine.extensions.add_value(1)
      NameError: name 'engine' is not defined
  ----------------------------------------------------------------------
  File "/media/sda7/zeitgeist/fix_del_cache/test/test-engine-extension.rst", line 64, in test-engine-extension.rst
  Failed example:
      engine.extensions.get_engine() is not None
  Exception raised:
      Traceback (most recent call last):
        File "/usr/lib/python2.7/doctest.py", line 1254, in __run
          compileflags, 1) in test.globs
        File "<doctest test-engine-extension.rst[11]>", line 1, in <module>
          engine.extensions.get_engine() is not None
      NameError: name 'engine' is not defined
  ----------------------------------------------------------------------
  File "/media/sda7/zeitgeist/fix_del_cache/test/test-engine-extension.rst", line 70, in test-engine-extension.rst
  Failed example:
      engine.extensions.internal_method()
  Expected:
      Traceback (most recent call last):
        ...
      AttributeError: ExtensionsCollection instance has no attribute 'internal_method'
  Got:
      Traceback (most recent call last):
        File "/usr/lib/python2.7/doctest.py", line 1254, in __run
          compileflags, 1) in test.globs
        File "<doctest test-engine-extension.rst[12]>", line 1, in <module>
          engine.extensions.internal_method()
      NameError: name 'engine' is not defined
  ----------------------------------------------------------------------
  File "/media/sda7/zeitgeist/fix_del_cache/test/test-engine-extension.rst", line 77, in test-engine-extension.rst
  Failed example:
      engine.extensions.unload(SampleExtension)
  Exception raised:
      Traceback (most recent call last):
        File "/usr/lib/python2.7/doctest.py", line 1254, in __run
          compileflags, 1) in test.globs
        File "<doctest test-engine-extension.rst[13]>", line 1, in <module>
          engine.extensions.unload(SampleExtension)
      NameError: name 'engine' is not defined
  ----------------------------------------------------------------------
  File "/media/sda7/zeitgeist/fix_del_cache/test/test-engine-extension.rst", line 78, in test-engine-extension.rst
  Failed example:
      sorted(engine.extensions.methods)
  Exception raised:
      Traceback (most recent call last):
        File "/usr/lib/python2.7/doctest.py", line 1254, in __run
          compileflags, 1) in test.globs
        File "<doctest test-engine-extension.rst[14]>", line 1, in <module>
          sorted(engine.extensions.methods)
      NameError: name 'engine' is not defined
  ----------------------------------------------------------------------
  File "/media/sda7/zeitgeist/fix_del_cache/test/test-engine-extension.rst", line 83, in test-engine-extension.rst
  Failed example:
      engine.extensions.add_value(5)
  Expected:
      Traceback (most recent call last):
        ...
      AttributeError: ExtensionsCollection instance has no attribute 'add_value'
  Got:
      Traceback (most recent call last):
        File "/usr/lib/python2.7/doctest.py", line 1254, in __run
          compileflags, 1) in test.globs
        File "<doctest test-engine-extension.rst[15]>", line 1, in <module>
          engine.extensions.add_value(5)
      NameError: name 'engine' is not defined
  ----------------------------------------------------------------------
  File "/media/sda7/zeitgeist/fix_del_cache/test/test-engine-extension.rst", line 91, in test-engine-extension.rst
  Failed example:
      engine.extensions.load(set) # doctest:+ELLIPSIS
  Expected:
      Traceback (most recent call last):
        ...
      TypeError: Unable to load <type 'set'>, all extensions must be subclasses of <class '...Extension'>
  Got:
      Traceback (most recent call last):
        File "/usr/lib/python2.7/doctest.py", line 1254, in __run
          compileflags, 1) in test.globs
        File "<doctest test-engine-extension.rst[16]>", line 1, in <module>
          engine.extensions.load(set) # doctest:+ELLIPSIS
      NameError: name 'engine' is not defined
  ----------------------------------------------------------------------
  File "/media/sda7/zeitgeist/fix_del_cache/test/test-engine-extension.rst", line 98, in test-engine-extension.rst
  Failed example:
      engine.extensions.unload()
  Exception raised:
      Traceback (most recent call last):
        File "/usr/lib/python2.7/doctest.py", line 1254, in __run
          compileflags, 1) in test.globs
        File "<doctest test-engine-extension.rst[17]>", line 1, in <module>
          engine.extensions.unload()
      NameError: name 'engine' is not defined
  ----------------------------------------------------------------------
  File "/media/sda7/zeitgeist/fix_del_cache/test/test-engine-extension.rst", line 99, in test-engine-extension.rst
  Failed example:
      len(engine.extensions)
  Exception raised:
      Traceback (most recent call last):
        File "/usr/lib/python2.7/doctest.py", line 1254, in __run
          compileflags, 1) in test.globs
        File "<doctest test-engine-extension.rst[18]>", line 1, in <module>
          len(engine.extensions)
      NameError: name 'engine' is not defined
  ----------------------------------------------------------------------
  File "/media/sda7/zeitgeist/fix_del_cache/test/test-engine-extension.rst", line 104, in test-engine-extension.rst
  Failed example:
      engine.close()
  Exception raised:
      Traceback (most recent call last):
        File "/usr/lib/python2.7/doctest.py", line 1254, in __run
          compileflags, 1) in test.globs
        File "<doctest test-engine-extension.rst[19]>", line 1, in <module>
          engine.close()
      NameError: name 'engine' is not defined

  
  ----------------------------------------------------------------------



Follow ups

References