doesn't run on Ubuntu 12.04

Bug #1215841 reported by Marten de Vries
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Python-PouchDB
Fix Released
Medium
Marten de Vries

Bug Description

Running the test suite (but also manually opening a db) gives the following error on Ubuntu 12.04. The traceback occurs because Ctrl + C is pressed, since the event loop is blocking in waitUntilCalled on the crash.

Seems similar to: https://github.com/daleharvey/pouchdb/issues/781
Also, WebSQL does seem available. (A minimal test case creating a database in a qwebview worked & openDatabase is defined.)

marten@vps:~/python-pouchdb$ python pouchdb/tests.py
line 0: TypeError: 'undefined' is not a function
line 0: TypeError: 'undefined' is not a function
Fline 0: TypeError: 'undefined' is not a function
Fline 0: TypeError: 'undefined' is not a function
line 0: No valid adapter found
^CTraceback (most recent call last):
  File "pouchdb/tests.py", line 369, in <module>
    unittest.main()
  File "/usr/lib/python2.7/unittest/main.py", line 95, in __init__
    self.runTests()
  File "/usr/lib/python2.7/unittest/main.py", line 229, in runTests
    self.result = testRunner.run(self.test)
  File "/usr/lib/python2.7/unittest/runner.py", line 151, in run
    test(result)
  File "/usr/lib/python2.7/unittest/suite.py", line 70, in __call__
    return self.run(*args, **kwds)
  File "/usr/lib/python2.7/unittest/suite.py", line 108, in run
    test(result)
  File "/usr/lib/python2.7/unittest/suite.py", line 70, in __call__
    return self.run(*args, **kwds)
  File "/usr/lib/python2.7/unittest/suite.py", line 108, in run
    test(result)
  File "/usr/lib/python2.7/unittest/case.py", line 391, in __call__
    return self.run(*args, **kwds)
  File "/usr/lib/python2.7/unittest/case.py", line 327, in run
    testMethod()
  File "pouchdb/tests.py", line 40, in testWithDbAndAllDbsDisabled
    db = pouchdb.PouchDB("test")
  File "/home/marten/python-pouchdb/pouchdb/__init__.py", line 109, in __init__
    getContext().newObject(self._id, name, options, callback)
  File "/home/marten/python-pouchdb/pouchdb/context.py", line 119, in newObject
    args=self._toJSArgs(args),
  File "/home/marten/python-pouchdb/pouchdb/context.py", line 187, in _evalJs
    self.waitUntilCalled(callback)
  File "/home/marten/python-pouchdb/pouchdb/context.py", line 171, in waitUntilCalled
    self._app.processEvents()
KeyboardInterrupt

Changed in python-pouchdb:
milestone: none → 0.2
Revision history for this message
Marten de Vries (marten-de-vries) wrote :

................................................
----------------------------------------------------------------------
Ran 48 tests in 18.246s

OK

Problems where:
- same-origin policy not being disabled (workaround: pouchdb.baseUrl)
- some JS code constructs being used not supported in an older version of webkit (https://github.com/daleharvey/pouchdb/issues/948)

Changed in python-pouchdb:
assignee: nobody → Marten de Vries (marten-de-vries)
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.