[Python-modules-team] Bug#835250: FTBFS against pytest 3.0.0
Sebastian Ramacher
sramacher at debian.org
Tue Aug 23 19:46:41 UTC 2016
Source: sqlobject
Version: 3.0.0+dfsg-2
Severity: important
Tags: sid stretch
Usertags: pytest3.0.0
During a test build with pytest 3.0.0 from experimental sqlobject failed to
build:
| =================================== FAILURES ===================================
| ____________________________ test_deep_inheritance _____________________________
|
| def test_deep_inheritance():
| setupClass([DIManager, DIEmployee, DIPerson])
|
| manager = DIManager(firstName='Project', lastName='Manager',
| > position='Project Manager')
|
| ../../../sqlobject/inheritance/tests/test_deep_inheritance.py:78:
| _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
| ../../../sqlobject/main.py:1301: in __init__
| self._create(id, **kw)
| ../../../sqlobject/inheritance/__init__.py:406: in _create
| connection=self._connection)
| ../../../sqlobject/main.py:1301: in __init__
| self._create(id, **kw)
| ../../../sqlobject/inheritance/__init__.py:413: in _create
| super(InheritableSQLObject, self)._create(id, **kw)
| ../../../sqlobject/main.py:1352: in _create
| self._SO_finishCreate(id)
| ../../../sqlobject/main.py:1378: in _SO_finishCreate
| id, names, values)
| ../../../sqlobject/dbconnection.py:494: in queryInsertID
| names, values)
| ../../../sqlobject/dbconnection.py:348: in _runWithConnection
| val = meth(conn, *args)
| ../../../sqlobject/sqlite/sqliteconnection.py:257: in _queryInsertID
| self._executeRetry(conn, c, q)
| _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
|
| self = <sqlobject.sqlite.sqliteconnection.SQLiteConnection instance at 0x7f86e8992cb0>
| conn = <sqlite3.Connection object at 0x7f86e8881dc8>
| cursor = <sqlite3.Cursor object at 0x7f86e7f59f10>
| query = "INSERT INTO di_employee (id, position, child_name) VALUES (3, 'Project Manager', 'DIManager')"
|
| def _executeRetry(self, conn, cursor, query):
| if self.debug:
| self.printDebug(conn, query, 'QueryR')
| try:
| return cursor.execute(query)
| except self.module.OperationalError as e:
| raise dberrors.OperationalError(ErrorMessage(e))
| except self.module.IntegrityError as e:
| msg = ErrorMessage(e)
| if msg.startswith('column') and msg.endswith('not unique') \
| or msg.startswith('UNIQUE constraint failed:'):
| > raise dberrors.DuplicateEntryError(msg)
| E DuplicateEntryError: UNIQUE constraint failed: di_employee.position
Please see
https://people.debian.org/~sramacher/logs/pytest3.0.0/sqlobject_amd64.log for a
full log.
Cheers
--
Sebastian Ramacher
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/python-modules-team/attachments/20160823/57510691/attachment.sig>
More information about the Python-modules-team
mailing list