pypy 2.0's test fails, sqlalchemy-0.8.2

Issue #2805 resolved
Anonymous created an issue

work/SQLAlchemy-0.8.2 $ PYTHONPATH=. pypy-c2.0 sqla_nose.py -I test_postgresql

``python

====================================================================== ERROR: test.orm.test_unitofwork.UnicodeSchemaTest.test_inheritance_mapping


Traceback (most recent call last): File "/usr/lib64/pypy2.0/site-packages/nose/case.py", line 197, in runTest self.test(self.arg) File "<string>", line 1, in <lambda> File "/mnt/gen2/TmpDir/portage/dev-python/sqlalchemy-0.8.2/work/SQLAlchemy-0.8.2-pypy2_0/./lib/sqlalchemy/testing/exclusions.py", line 70, in decorate return fn(args, **kw) File "/mnt/gen2/TmpDir/portage/dev-python/sqlalchemy-0.8.2/work/SQLAlchemy-0.8.2-pypy2_0/test/orm/test_unitofwork.py", line 222, in test_inheritance_mapping eq_(B(e=7), session.query(A).all()) File "/mnt/gen2/TmpDir/portage/dev-python/sqlalchemy-0.8.2/work/SQLAlchemy-0.8.2-pypy2_0/./lib/sqlalchemy/orm/query.py", line 2237, in all return list(self) File "/mnt/gen2/TmpDir/portage/dev-python/sqlalchemy-0.8.2/work/SQLAlchemy-0.8.2-pypy2_0/./lib/sqlalchemy/orm/query.py", line 2349, in iter return self._execute_and_instances(context) File "/mnt/gen2/TmpDir/portage/dev-python/sqlalchemy-0.8.2/work/SQLAlchemy-0.8.2-pypy2_0/./lib/sqlalchemy/orm/query.py", line 2364, in _execute_and_instances result = conn.execute(querycontext.statement, self._params) File "/mnt/gen2/TmpDir/portage/dev-python/sqlalchemy-0.8.2/work/SQLAlchemy-0.8.2-pypy2_0/./lib/sqlalchemy/engine/base.py", line 662, in execute params) File "/mnt/gen2/TmpDir/portage/dev-python/sqlalchemy-0.8.2/work/SQLAlchemy-0.8.2-pypy2_0/./lib/sqlalchemy/engine/base.py", line 761, in _execute_clauseelement compiled_sql, distilled_params File "/mnt/gen2/TmpDir/portage/dev-python/sqlalchemy-0.8.2/work/SQLAlchemy-0.8.2-pypy2_0/./lib/sqlalchemy/engine/base.py", line 891, in _execute_context result = context.get_result_proxy() File "/mnt/gen2/TmpDir/portage/dev-python/sqlalchemy-0.8.2/work/SQLAlchemy-0.8.2-pypy2_0/./lib/sqlalchemy/engine/default.py", line 655, in get_result_proxy return result.ResultProxy(self) File "/mnt/gen2/TmpDir/portage/dev-python/sqlalchemy-0.8.2/work/SQLAlchemy-0.8.2-pypy2_0/./lib/sqlalchemy/engine/result.py", line 386, in init self._init_metadata() File "/mnt/gen2/TmpDir/portage/dev-python/sqlalchemy-0.8.2/work/SQLAlchemy-0.8.2-pypy2_0/./lib/sqlalchemy/engine/result.py", line 391, in _init_metadata self._metadata = ResultMetaData(self, metadata) File "/mnt/gen2/TmpDir/portage/dev-python/sqlalchemy-0.8.2/work/SQLAlchemy-0.8.2-pypy2_0/./lib/sqlalchemy/engine/result.py", line 193, in init colname = dialect._description_decoder(colname) File "/mnt/gen2/TmpDir/portage/dev-python/sqlalchemy-0.8.2/work/SQLAlchemy-0.8.2-pypy2_0/./lib/sqlalchemy/processors.py", line 66, in process return decoder(value, errors)0 File "/usr/lib64/pypy2.0/lib-python/2.7/encodings/utf_8.py", line 16, in decode return codecs.utf_8_decode(input, errors, True) UnicodeEncodeError: 'ascii' codec can't encode character u'\xe9' in position 11: ordinal not in range(128)

====================================================================== ERROR: test.orm.test_unitofwork.UnicodeSchemaTest.test_mapping


Traceback (most recent call last): File "/usr/lib64/pypy2.0/site-packages/nose/case.py", line 197, in runTest self.test(self.arg) File "<string>", line 1, in <lambda> File "/mnt/gen2/TmpDir/portage/dev-python/sqlalchemy-0.8.2/work/SQLAlchemy-0.8.2-pypy2_0/./lib/sqlalchemy/testing/exclusions.py", line 70, in decorate return fn(args, **kw) File "/mnt/gen2/TmpDir/portage/dev-python/sqlalchemy-0.8.2/work/SQLAlchemy-0.8.2-pypy2_0/test/orm/test_unitofwork.py", line 182, in test_mapping new_a1 = session.query(A).filter(t1.c.a == a1.a).one() File "/mnt/gen2/TmpDir/portage/dev-python/sqlalchemy-0.8.2/work/SQLAlchemy-0.8.2-pypy2_0/./lib/sqlalchemy/orm/query.py", line 2306, in one ret = list(self) File "/mnt/gen2/TmpDir/portage/dev-python/sqlalchemy-0.8.2/work/SQLAlchemy-0.8.2-pypy2_0/./lib/sqlalchemy/orm/query.py", line 2349, in iter return self._execute_and_instances(context) File "/mnt/gen2/TmpDir/portage/dev-python/sqlalchemy-0.8.2/work/SQLAlchemy-0.8.2-pypy2_0/./lib/sqlalchemy/orm/query.py", line 2364, in _execute_and_instances result = conn.execute(querycontext.statement, self._params) File "/mnt/gen2/TmpDir/portage/dev-python/sqlalchemy-0.8.2/work/SQLAlchemy-0.8.2-pypy2_0/./lib/sqlalchemy/engine/base.py", line 662, in execute params) File "/mnt/gen2/TmpDir/portage/dev-python/sqlalchemy-0.8.2/work/SQLAlchemy-0.8.2-pypy2_0/./lib/sqlalchemy/engine/base.py", line 761, in _execute_clauseelement compiled_sql, distilled_params File "/mnt/gen2/TmpDir/portage/dev-python/sqlalchemy-0.8.2/work/SQLAlchemy-0.8.2-pypy2_0/./lib/sqlalchemy/engine/base.py", line 891, in _execute_context result = context.get_result_proxy() File "/mnt/gen2/TmpDir/portage/dev-python/sqlalchemy-0.8.2/work/SQLAlchemy-0.8.2-pypy2_0/./lib/sqlalchemy/engine/default.py", line 655, in get_result_proxy return result.ResultProxy(self) File "/mnt/gen2/TmpDir/portage/dev-python/sqlalchemy-0.8.2/work/SQLAlchemy-0.8.2-pypy2_0/./lib/sqlalchemy/engine/result.py", line 386, in init self._init_metadata() File "/mnt/gen2/TmpDir/portage/dev-python/sqlalchemy-0.8.2/work/SQLAlchemy-0.8.2-pypy2_0/./lib/sqlalchemy/engine/result.py", line 391, in _init_metadata self._metadata = ResultMetaData(self, metadata) File "/mnt/gen2/TmpDir/portage/dev-python/sqlalchemy-0.8.2/work/SQLAlchemy-0.8.2-pypy2_0/./lib/sqlalchemy/engine/result.py", line 193, in init colname = dialect._description_decoder(colname) File "/mnt/gen2/TmpDir/portage/dev-python/sqlalchemy-0.8.2/work/SQLAlchemy-0.8.2-pypy2_0/./lib/sqlalchemy/processors.py", line 66, in process return decoder(value, errors)0 File "/usr/lib64/pypy2.0/lib-python/2.7/encodings/utf_8.py", line 16, in decode return codecs.utf_8_decode(input, errors, True) UnicodeEncodeError: 'ascii' codec can't encode character u'\xe9' in position 11: ordinal not in range(128)

====================================================================== ERROR: test.sql.test_unicode.UnicodeSchemaTest.test_insert


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.2/work/SQLAlchemy-0.8.2-pypy2_0/test/sql/test_unicode.py", line 82, in test_insert assert t1.select().execute().fetchall() == [5)]((1,) File "/mnt/gen2/TmpDir/portage/dev-python/sqlalchemy-0.8.2/work/SQLAlchemy-0.8.2-pypy2_0/./lib/sqlalchemy/sql/expression.py", line 3133, in execute return e._execute_clauseelement(self, multiparams, params) File "/mnt/gen2/TmpDir/portage/dev-python/sqlalchemy-0.8.2/work/SQLAlchemy-0.8.2-pypy2_0/./lib/sqlalchemy/engine/base.py", line 1621, in _execute_clauseelement return connection._execute_clauseelement(elem, multiparams, params) File "/mnt/gen2/TmpDir/portage/dev-python/sqlalchemy-0.8.2/work/SQLAlchemy-0.8.2-pypy2_0/./lib/sqlalchemy/engine/base.py", line 761, in _execute_clauseelement compiled_sql, distilled_params File "/mnt/gen2/TmpDir/portage/dev-python/sqlalchemy-0.8.2/work/SQLAlchemy-0.8.2-pypy2_0/./lib/sqlalchemy/engine/base.py", line 891, in _execute_context result = context.get_result_proxy() File "/mnt/gen2/TmpDir/portage/dev-python/sqlalchemy-0.8.2/work/SQLAlchemy-0.8.2-pypy2_0/./lib/sqlalchemy/engine/default.py", line 655, in get_result_proxy return result.ResultProxy(self) File "/mnt/gen2/TmpDir/portage/dev-python/sqlalchemy-0.8.2/work/SQLAlchemy-0.8.2-pypy2_0/./lib/sqlalchemy/engine/result.py", line 386, in init self._init_metadata() File "/mnt/gen2/TmpDir/portage/dev-python/sqlalchemy-0.8.2/work/SQLAlchemy-0.8.2-pypy2_0/./lib/sqlalchemy/engine/result.py", line 391, in _init_metadata self._metadata = ResultMetaData(self, metadata) File "/mnt/gen2/TmpDir/portage/dev-python/sqlalchemy-0.8.2/work/SQLAlchemy-0.8.2-pypy2_0/./lib/sqlalchemy/engine/result.py", line 193, in init colname = dialect._description_decoder(colname) File "/mnt/gen2/TmpDir/portage/dev-python/sqlalchemy-0.8.2/work/SQLAlchemy-0.8.2-pypy2_0/./lib/sqlalchemy/processors.py", line 66, in process return decoder(value, errors)0 File "/usr/lib64/pypy2.0/lib-python/2.7/encodings/utf_8.py", line 16, in decode return codecs.utf_8_decode(input, errors, True) UnicodeEncodeError: 'ascii' codec can't encode character u'\xe9' in position 1: ordinal not in range(128)

====================================================================== ERROR: test.sql.test_unicode.UnicodeSchemaTest.test_reflect


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.2/work/SQLAlchemy-0.8.2-pypy2_0/test/sql/test_unicode.py", line 106, in test_reflect self.assert_(tt1.select(order_by=desc(u'méil')).execute().fetchall() == File "/mnt/gen2/TmpDir/portage/dev-python/sqlalchemy-0.8.2/work/SQLAlchemy-0.8.2-pypy2_0/./lib/sqlalchemy/sql/expression.py", line 3133, in execute return e._execute_clauseelement(self, multiparams, params) File "/mnt/gen2/TmpDir/portage/dev-python/sqlalchemy-0.8.2/work/SQLAlchemy-0.8.2-pypy2_0/./lib/sqlalchemy/engine/base.py", line 1621, in _execute_clauseelement return connection._execute_clauseelement(elem, multiparams, params) File "/mnt/gen2/TmpDir/portage/dev-python/sqlalchemy-0.8.2/work/SQLAlchemy-0.8.2-pypy2_0/./lib/sqlalchemy/engine/base.py", line 761, in _execute_clauseelement compiled_sql, distilled_params File "/mnt/gen2/TmpDir/portage/dev-python/sqlalchemy-0.8.2/work/SQLAlchemy-0.8.2-pypy2_0/./lib/sqlalchemy/engine/base.py", line 891, in _execute_context result = context.get_result_proxy() File "/mnt/gen2/TmpDir/portage/dev-python/sqlalchemy-0.8.2/work/SQLAlchemy-0.8.2-pypy2_0/./lib/sqlalchemy/engine/default.py", line 655, in get_result_proxy return result.ResultProxy(self) File "/mnt/gen2/TmpDir/portage/dev-python/sqlalchemy-0.8.2/work/SQLAlchemy-0.8.2-pypy2_0/./lib/sqlalchemy/engine/result.py", line 386, in init self._init_metadata() File "/mnt/gen2/TmpDir/portage/dev-python/sqlalchemy-0.8.2/work/SQLAlchemy-0.8.2-pypy2_0/./lib/sqlalchemy/engine/result.py", line 391, in _init_metadata self._metadata = ResultMetaData(self, metadata) File "/mnt/gen2/TmpDir/portage/dev-python/sqlalchemy-0.8.2/work/SQLAlchemy-0.8.2-pypy2_0/./lib/sqlalchemy/engine/result.py", line 193, in init colname = dialect._description_decoder(colname) File "/mnt/gen2/TmpDir/portage/dev-python/sqlalchemy-0.8.2/work/SQLAlchemy-0.8.2-pypy2_0/./lib/sqlalchemy/processors.py", line 66, in process return decoder(value, errors)0 File "/usr/lib64/pypy2.0/lib-python/2.7/encodings/utf_8.py", line 16, in decode return codecs.utf_8_decode(input, errors, True) UnicodeEncodeError: 'ascii' codec can't encode character u'\xe9' in position 1: ordinal not in range(128)

====================================================================== FAIL: test.dialect.test_suite.LastrowidTest.test_native_lastrowid_autoinc


Traceback (most recent call last): File "/usr/lib64/pypy2.0/site-packages/nose/case.py", line 197, in runTest self.test(self.arg) File "<string>", line 1, in <lambda> File "/mnt/gen2/TmpDir/portage/dev-python/sqlalchemy-0.8.2/work/SQLAlchemy-0.8.2-pypy2_0/./lib/sqlalchemy/testing/exclusions.py", line 70, in decorate return fn(args, **kw) File "/usr/lib64/pypy2.0/lib-python/2.7/contextlib.py", line 24, in exit self.gen.next() File "/mnt/gen2/TmpDir/portage/dev-python/sqlalchemy-0.8.2/work/SQLAlchemy-0.8.2-pypy2_0/./lib/sqlalchemy/testing/exclusions.py", line 36, in fail_if (name, self.predicate)) AssertionError: Unexpected success for 'test_native_lastrowid_autoinc' (custom function)

====================================================================== 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 "<string>", line 1, in <lambda> File "/mnt/gen2/TmpDir/portage/dev-python/sqlalchemy-0.8.2/work/SQLAlchemy-0.8.2-pypy2_0/./lib/sqlalchemy/testing/exclusions.py", line 57, in decorate return fn(args, kw) File "/mnt/gen2/TmpDir/portage/dev-python/sqlalchemy-0.8.2/work/SQLAlchemy-0.8.2-pypy2_0/test/ext/test_serializer.py", line 133, in test_query_three q2 = serializer.loads(serializer.dumps(q, -1), users.metadata, File "/mnt/gen2/TmpDir/portage/dev-python/sqlalchemy-0.8.2/work/SQLAlchemy-0.8.2-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


Ran 5071 tests in 896.234s

FAILED (SKIP=214, errors=4, failures=2) `` /dev-python/pypy $ pypy-c2.0 -V Python 2.7.3 (5acfe049a5b0cd0de158f62553a98f5ef364fd29, Jul 16 2013, 06:02:38) 2.0.2

Comments (6)

  1. Anonymous

    zzzeek that's fine. Personally I find pull requests pretty cumbersome, and seeing you say they're good in the future 0.9 I'm all the more disinclined. However, how about a paste of the patch I'll make in here (skipping the tests for pypy)? I'll be about a half hour or more

  2. Log in to comment