Created attachment 314469 [details, diff] ebuild patch archtester sqlobject # USE_PYTHON="2.5 2.7-pypy-1.8" ebuild sqlobject-1.3.1.ebuild clean test sees python2.6 pass and 1 single test fails for pypy; sqlobject/tests/test_sqlobject_admin.py > raise ImportError('Cannot find a PostgreSQL driver, tried %s' % drivers) E ImportError: Cannot find a PostgreSQL driver, tried psycopg = archtester sqlobject # USE_PYTHON="2.5 2.6 2.7 2.7-pypy-1.8" ebuild sqlobject-1.3.1.ebuild merge * Compilation and optimization of Python modules for CPython 2.5 [ ok ] * Compilation and optimization of Python modules for CPython 2.6 [ ok ] * Compilation and optimization of Python modules for CPython 2.7 [ ok ] * Compilation and optimization of Python modules for PyPy 1.8 (Python 2.7) [ ok ] >>> dev-python/sqlobject-1.3.1 merged. ______________________________________________________________________________ archtester sqlobject # USE_PYTHON="2.5 2.6 2.7" ebuild sqlobject-1.3.1.ebuild clean test merge * Compilation and optimization of Python modules for CPython 2.5 [ ok ] * Compilation and optimization of Python modules for CPython 2.6 [ ok ] * Compilation and optimization of Python modules for CPython 2.7 [ ok ] >>> dev-python/sqlobject-1.3.1 merged. Yet another test suite uncovered, and this one has its own shortcomings. 1. It appears it is written for pytest. nosetests deosn't work. 2. There is 1 test that pypy can't pass and 1 test that has a feature I have never before encountered; It will fail when called from py.test sqlobject/tests/ but it will pass if called when run by itself. Go figure that.
Created attachment 314623 [details, diff] files/sqlobject_test.patch
from the issue I filed; they passed for him. Message: Hi. Both tests work for me: both still fail for me. Need someone to confirm can replicate these. On my system they can't pass without the patch I made, but upstream's can. pypy can't find a driver for that 1 test. pypy isn't yet equipped to emerge dev-python/psycopg. Just 1 test almost 400.
bumped 28 Jun 2012