Menu

#31 ming-0.5.4 (and 0.5.0) tests fail with python2.7, pass with 3.4

open
nobody
None
2016-05-25
2016-05-25
austin987
No

I extracted tarball, cd'ed into folder, and ran:
python2.7 setup.py sdist test

which failed:
ERROR: test_mr_replace (ming.tests.test_mim.TestMRCommands)
Traceback (most recent call last):
File "/tmp/Ming-0.5.4/ming/tests/test_mim.py", line 243, in setUp
super(TestMRCommands, self).setUp()
File "/tmp/Ming-0.5.4/ming/tests/test_mim.py", line 210, in setUp
self.bind.conn.drop_all()
File "/tmp/Ming-0.5.4/ming/datastore.py", line 188, in conn
return self.connection
File "/tmp/Ming-0.5.4/ming/datastore.py", line 184, in getattr
return getattr(self.db, name)
File "/tmp/Ming-0.5.4/ming/datastore.py", line 199, in db
self._db = self.bind[self.name]
File "/tmp/Ming-0.5.4/ming/datastore.py", line 131, in getitem
return self.conn[name]
File "/tmp/Ming-0.5.4/ming/mim.py", line 89, in getitem
return self._get(name)
File "/tmp/Ming-0.5.4/ming/mim.py", line 95, in _get
db = self._databases[name] = Database(self, name)
File "/tmp/Ming-0.5.4/ming/mim.py", line 118, in init
self._jsruntime = Runtime()
JSError: Failed to allocate new JSRuntime.

In total 6 tests fail:
ERROR: test_mr_replace (ming.tests.test_mim.TestMRCommands)
ERROR: test_mr_replace_collection (ming.tests.test_mim.TestMRCommands)
ERROR: test_mr_replace_number_key_obj (ming.tests.test_mim.TestMRCommands)
ERROR: test_extra_fields_not_allowed (ming.tests.test_schema.TestQuerySafety)
ERROR: test_extra_fields_not_stripped (ming.tests.test_schema.TestQuerySafety)
ERROR: test_extra_fields_stripped (ming.tests.test_schema.TestQuerySafety)

all with the same JSError. Repeating the tests with python3.4 setup.py sdist test worked.

Discussion

Anonymous
Anonymous

Add attachments
Cancel