Issue #2719 resolved

release 0.8.1 testsuite failures in test_serializer (3) test_manytomany (1) under pypy2

Anonymous created an issue

This is what's required to get the suite to pass under pypy (from an ebuild)

            "${PYTHON}" sqla_nose.py -I test_postgresql -e 'test_orm_join*' \
                    -e test_query_three* -e 'test_query_two' -e test_bidirectional \

which translates into

            pypy-c2.0 sqla_nose.py -e 'test_orm_join*' \
                    -e test_query_three* -e 'test_query_two' -e test_bidirectional


======================================================================
FAIL: test.ext.test_serializer.SerializeTest.test_orm_join
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib64/pypy2.0/site-packages/nose/case.py", line 197, in runTest
    self.test(*self.arg)
  File "/mnt/gen2/TmpDir/portage/dev-python/sqlalchemy-0.8.1/work/SQLAlchemy-0.8.1-pypy2_0/test/ext/test_serializer.py", line 144, in test_orm_join
    j2 = serializer.loads(serializer.dumps(j, -1), users.metadata)
  File "/mnt/gen2/TmpDir/portage/dev-python/sqlalchemy-0.8.1/work/SQLAlchemy-0.8.1-pypy2_0/./lib/sqlalchemy/ext/serializer.py", line 164, in dumps
    pickler.dump(obj)
  File "/usr/lib64/pypy2.0/lib-python/2.7/pickle.py", line 224, in dump
    self.save(obj)
  File "/usr/lib64/pypy2.0/lib-python/2.7/pickle.py", line 331, in save
    self.save_reduce(obj=obj, *rv)
  File "/usr/lib64/pypy2.0/lib-python/2.7/pickle.py", line 419, in save_reduce
    save(state)
  File "/usr/lib64/pypy2.0/lib-python/2.7/pickle.py", line 286, in save
    f(self, obj) # Call unbound method with explicit self
  File "/usr/lib64/pypy2.0/lib-python/2.7/pickle.py", line 653, in save_dict
    self._batch_setitems(obj.iteritems())
  File "/usr/lib64/pypy2.0/lib-python/2.7/pickle.py", line 685, in _batch_setitems
    save(v)
  File "/usr/lib64/pypy2.0/lib-python/2.7/pickle.py", line 331, in save
    self.save_reduce(obj=obj, *rv)
  File "/usr/lib64/pypy2.0/lib-python/2.7/pickle.py", line 419, in save_reduce
    save(state)
  File "/usr/lib64/pypy2.0/lib-python/2.7/pickle.py", line 286, in save
    f(self, obj) # Call unbound method with explicit self
  File "/usr/lib64/pypy2.0/lib-python/2.7/pickle.py", line 653, in save_dict
    self._batch_setitems(obj.iteritems())
  File "/usr/lib64/pypy2.0/lib-python/2.7/pickle.py", line 685, in _batch_setitems
    save(v)
  File "/usr/lib64/pypy2.0/lib-python/2.7/pickle.py", line 331, in save
    self.save_reduce(obj=obj, *rv)
  File "/usr/lib64/pypy2.0/lib-python/2.7/pickle.py", line 405, in save_reduce
    self.memoize(obj)
  File "/usr/lib64/pypy2.0/lib_pypy/cPickle.py", line 112, in memoize
    return PythonPickler.memoize(self, obj)
  File "/usr/lib64/pypy2.0/lib-python/2.7/pickle.py", line 244, in memoize
    assert id(obj) not in self.memo
AssertionError

======================================================================
FAIL: test.ext.test_serializer.SerializeTest.test_query_three
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib64/pypy2.0/site-packages/nose/case.py", line 197, in runTest
    self.test(*self.arg)
  File "/mnt/gen2/TmpDir/portage/dev-python/sqlalchemy-0.8.1/work/SQLAlchemy-0.8.1-pypy2_0/test/ext/test_serializer.py", line 131, in test_query_three
    q2 = serializer.loads(serializer.dumps(q, -1), users.metadata,
  File "/mnt/gen2/TmpDir/portage/dev-python/sqlalchemy-0.8.1/work/SQLAlchemy-0.8.1-pypy2_0/./lib/sqlalchemy/ext/serializer.py", line 164, in dumps
    pickler.dump(obj)
  File "/usr/lib64/pypy2.0/lib-python/2.7/pickle.py", line 224, in dump
    self.save(obj)
  File "/usr/lib64/pypy2.0/lib-python/2.7/pickle.py", line 331, in save
    self.save_reduce(obj=obj, *rv)
  File "/usr/lib64/pypy2.0/lib-python/2.7/pickle.py", line 419, in save_reduce
    save(state)
  File "/usr/lib64/pypy2.0/lib-python/2.7/pickle.py", line 286, in save
    f(self, obj) # Call unbound method with explicit self
  File "/usr/lib64/pypy2.0/lib-python/2.7/pickle.py", line 653, in save_dict
    self._batch_setitems(obj.iteritems())
  File "/usr/lib64/pypy2.0/lib-python/2.7/pickle.py", line 685, in _batch_setitems
    save(v)
  File "/usr/lib64/pypy2.0/lib-python/2.7/pickle.py", line 286, in save
    f(self, obj) # Call unbound method with explicit self
  File "/usr/lib64/pypy2.0/lib-python/2.7/pickle.py", line 548, in save_tuple
    save(element)
  File "/usr/lib64/pypy2.0/lib-python/2.7/pickle.py", line 331, in save
    self.save_reduce(obj=obj, *rv)
  File "/usr/lib64/pypy2.0/lib-python/2.7/pickle.py", line 419, in save_reduce
    save(state)
  File "/usr/lib64/pypy2.0/lib-python/2.7/pickle.py", line 286, in save
    f(self, obj) # Call unbound method with explicit self
  File "/usr/lib64/pypy2.0/lib-python/2.7/pickle.py", line 653, in save_dict
    self._batch_setitems(obj.iteritems())
  File "/usr/lib64/pypy2.0/lib-python/2.7/pickle.py", line 685, in _batch_setitems
    save(v)
  File "/usr/lib64/pypy2.0/lib-python/2.7/pickle.py", line 331, in save
    self.save_reduce(obj=obj, *rv)
  File "/usr/lib64/pypy2.0/lib-python/2.7/pickle.py", line 419, in save_reduce
    save(state)
  File "/usr/lib64/pypy2.0/lib-python/2.7/pickle.py", line 286, in save
    f(self, obj) # Call unbound method with explicit self
  File "/usr/lib64/pypy2.0/lib-python/2.7/pickle.py", line 653, in save_dict
    self._batch_setitems(obj.iteritems())
  File "/usr/lib64/pypy2.0/lib-python/2.7/pickle.py", line 685, in _batch_setitems
    save(v)
  File "/usr/lib64/pypy2.0/lib-python/2.7/pickle.py", line 331, in save
    self.save_reduce(obj=obj, *rv)
  File "/usr/lib64/pypy2.0/lib-python/2.7/pickle.py", line 405, in save_reduce
    self.memoize(obj)
  File "/usr/lib64/pypy2.0/lib_pypy/cPickle.py", line 112, in memoize
    return PythonPickler.memoize(self, obj)
  File "/usr/lib64/pypy2.0/lib-python/2.7/pickle.py", line 244, in memoize
    assert id(obj) not in self.memo
AssertionError

======================================================================
FAIL: test.ext.test_serializer.SerializeTest.test_query_two
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib64/pypy2.0/site-packages/nose/case.py", line 197, in runTest
    self.test(*self.arg)
  File "/mnt/gen2/TmpDir/portage/dev-python/sqlalchemy-0.8.1/work/SQLAlchemy-0.8.1-pypy2_0/test/ext/test_serializer.py", line 121, in test_query_two
    q2 = serializer.loads(serializer.dumps(q, -1), users.metadata,
  File "/mnt/gen2/TmpDir/portage/dev-python/sqlalchemy-0.8.1/work/SQLAlchemy-0.8.1-pypy2_0/./lib/sqlalchemy/ext/serializer.py", line 164, in dumps
    pickler.dump(obj)
  File "/usr/lib64/pypy2.0/lib-python/2.7/pickle.py", line 224, in dump
    self.save(obj)
  File "/usr/lib64/pypy2.0/lib-python/2.7/pickle.py", line 331, in save
    self.save_reduce(obj=obj, *rv)
  File "/usr/lib64/pypy2.0/lib-python/2.7/pickle.py", line 419, in save_reduce
    save(state)
  File "/usr/lib64/pypy2.0/lib-python/2.7/pickle.py", line 286, in save
    f(self, obj) # Call unbound method with explicit self
  File "/usr/lib64/pypy2.0/lib-python/2.7/pickle.py", line 653, in save_dict
    self._batch_setitems(obj.iteritems())
  File "/usr/lib64/pypy2.0/lib-python/2.7/pickle.py", line 685, in _batch_setitems
    save(v)
  File "/usr/lib64/pypy2.0/lib-python/2.7/pickle.py", line 286, in save
    f(self, obj) # Call unbound method with explicit self
  File "/usr/lib64/pypy2.0/lib-python/2.7/pickle.py", line 548, in save_tuple
    save(element)
  File "/usr/lib64/pypy2.0/lib-python/2.7/pickle.py", line 331, in save
    self.save_reduce(obj=obj, *rv)
  File "/usr/lib64/pypy2.0/lib-python/2.7/pickle.py", line 419, in save_reduce
    save(state)
  File "/usr/lib64/pypy2.0/lib-python/2.7/pickle.py", line 286, in save
    f(self, obj) # Call unbound method with explicit self
  File "/usr/lib64/pypy2.0/lib-python/2.7/pickle.py", line 653, in save_dict
    self._batch_setitems(obj.iteritems())
  File "/usr/lib64/pypy2.0/lib-python/2.7/pickle.py", line 685, in _batch_setitems
    save(v)
  File "/usr/lib64/pypy2.0/lib-python/2.7/pickle.py", line 331, in save
    self.save_reduce(obj=obj, *rv)
  File "/usr/lib64/pypy2.0/lib-python/2.7/pickle.py", line 419, in save_reduce
    save(state)
  File "/usr/lib64/pypy2.0/lib-python/2.7/pickle.py", line 286, in save
    f(self, obj) # Call unbound method with explicit self
  File "/usr/lib64/pypy2.0/lib-python/2.7/pickle.py", line 653, in save_dict
    self._batch_setitems(obj.iteritems())
  File "/usr/lib64/pypy2.0/lib-python/2.7/pickle.py", line 685, in _batch_setitems
    save(v)
  File "/usr/lib64/pypy2.0/lib-python/2.7/pickle.py", line 331, in save
    self.save_reduce(obj=obj, *rv)
  File "/usr/lib64/pypy2.0/lib-python/2.7/pickle.py", line 405, in save_reduce
    self.memoize(obj)
  File "/usr/lib64/pypy2.0/lib_pypy/cPickle.py", line 112, in memoize
    return PythonPickler.memoize(self, obj)
  File "/usr/lib64/pypy2.0/lib-python/2.7/pickle.py", line 244, in memoize
    assert id(obj) not in self.memo
AssertionError

======================================================================
FAIL: test.orm.test_manytomany.M2MTest.test_bidirectional
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib64/pypy2.0/site-packages/nose/case.py", line 197, in runTest
    self.test(*self.arg)
  File "/mnt/gen2/TmpDir/portage/dev-python/sqlalchemy-0.8.1/work/SQLAlchemy-0.8.1-pypy2_0/test/orm/test_manytomany.py", line 249, in test_bidirectional
    (Place, ['place3'}, {'name': 'place1'}]({'name':))})
  File "/mnt/gen2/TmpDir/portage/dev-python/sqlalchemy-0.8.1/work/SQLAlchemy-0.8.1-pypy2_0/./lib/sqlalchemy/testing/assertions.py", line 266, in assert_result
    self.assert_list(result, class_, objects)
  File "/mnt/gen2/TmpDir/portage/dev-python/sqlalchemy-0.8.1/work/SQLAlchemy-0.8.1-pypy2_0/./lib/sqlalchemy/testing/assertions.py", line 273, in assert_list
    self.assert_row(class_, result[i](i), list[i](i))
  File "/mnt/gen2/TmpDir/portage/dev-python/sqlalchemy-0.8.1/work/SQLAlchemy-0.8.1-pypy2_0/./lib/sqlalchemy/testing/assertions.py", line 281, in assert_row
    self.assert_list(getattr(rowobj, key), value[0](0), value[1](1))
  File "/mnt/gen2/TmpDir/portage/dev-python/sqlalchemy-0.8.1/work/SQLAlchemy-0.8.1-pypy2_0/./lib/sqlalchemy/testing/assertions.py", line 273, in assert_list
    self.assert_row(class_, result[i](i), list[i](i))
  File "/mnt/gen2/TmpDir/portage/dev-python/sqlalchemy-0.8.1/work/SQLAlchemy-0.8.1-pypy2_0/./lib/sqlalchemy/testing/assertions.py", line 287, in assert_row
    key, getattr(rowobj, key), value))
  File "/mnt/gen2/TmpDir/portage/dev-python/sqlalchemy-0.8.1/work/SQLAlchemy-0.8.1-pypy2_0/./lib/sqlalchemy/testing/fixtures.py", line 31, in assert_
    assert val, msg
AssertionError: attribute name value place1 does not match place3
-------------------- >> begin captured stdout << ---------------------
[Transition()](Transition())

--------------------- >> end captured stdout << ----------------------

----------------------------------------------------------------------
Ran 4956 tests in 807.452s

FAILED (SKIP=184, failures=4)
 * ERROR: dev-python/sqlalchemy-0.8.1 failed (test phase):
 *   Testsuite failed under pypy-c2.0

Comments (4)

  1. Log in to comment