[pypy-issue] [issue1410] SQLAlchemy-0.7.10's test/sql/test_query.py trips pypy over exception type
Ian Delaney
tracker at bugs.pypy.org
Tue Feb 26 15:13:05 CET 2013
New submission from Ian Delaney <della5 at iinet.com.au>:
I've attempted as many substitutions of AttributeError with TypeEror as is
reasonable in the SQLAlchemy-0.7.10 source without invoking more spam errors
unnecessarily.
.......................................................
......ES..........S..................S..SSS................................................................................................................................................................SSSSSS
======================================================================
ERROR: test.sql.test_query.QueryTest.test_native_lastrowid
----------------------------------------------------------------------
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.7.10/work/SQLAlchemy-0.7.10/./test/lib/exclusions.py",
line 14, in decorate
return fn(*args, **kw)
File
"/mnt/gen2/TmpDir/portage/dev-python/sqlalchemy-0.7.10/work/SQLAlchemy-0.7.10/./test/sql/test_query.py",
line 847, in test_native_lastrowid
eq_(r.lastrowid, 1)
File
"/mnt/gen2/TmpDir/portage/dev-python/sqlalchemy-0.7.10/work/SQLAlchemy-0.7.10/./lib/sqlalchemy/engine/base.py",
line 2983, in lastrowid
return self._saved_cursor.lastrowid
File "/usr/lib64/pypy2.0/lib_pypy/_sqlite3.py", line 913, in _getlastrowid
return sqlite.sqlite3_last_insert_rowid(self.connection.db)
AttributeError: 'NoneType' object has no attribute 'db'
----------------------------------------------------------------------
Ran 4033 tests in 654.941s
1 single measly test fail from 4033 over an exception type.
testuser at archtester ~/cvsPortage/gentoo-x86/dev-python/sqlalchemy $ grep Error
/mnt/gen2/TmpDir/portage/dev-python/sqlalchemy-0.7.10/work/SQLAlchemy-0.7.10/lib/sqlalchemy/engine/base.py
|grep Attribute
except AttributeError:
except AttributeError:
except AttributeError:
except AttributeError:
raise AttributeError(e.args[0])
except AttributeError:
except AttributeError:
except AttributeError:
testuser at archtester ~/cvsPortage/gentoo-x86/dev-python/sqlalchemy $ grep Error
/mnt/gen2/TmpDir/portage/dev-python/sqlalchemy-0.7.10/work/SQLAlchemy-0.7.10/lib/sqlalchemy/engine/base.py
|grep Type
except TypeError:
except TypeError:
What I didn't do was to start substituting TypeError for AttributeError in the
system installed pypy lib files.
testuser at archtester ~/cvsPortage/gentoo-x86/dev-python/sqlalchemy $ grep Error
/usr/lib64/pypy2.0/lib_pypy/_sqlite3.py |grep Type
raise TypeError("parameter must be callable")
raise TypeError
except TypeError:
except TypeError:
ANy further data required?
----------
assignedto: fijal
messages: 5387
nosy: fijal, idella5, pypy-issue
priority: bug
release: 2.0
status: chatting
title: SQLAlchemy-0.7.10's test/sql/test_query.py trips pypy over exception type
________________________________________
PyPy bug tracker <tracker at bugs.pypy.org>
<https://bugs.pypy.org/issue1410>
________________________________________
More information about the pypy-issue
mailing list