def test_commit(self): transaction.begin() zc = ZopeConnection(ConnectionStub(), TypeInfoStub()) self._txn_registered = True zc.commit() self.assertEqual(zc._txn_registered, False, "did not forget the transaction")
def test_commit(self): transaction.begin() zc = ZopeConnection(ConnectionStub(), TypeInfoStub()) self._txn_registered = True zc.commit() self.assertEqual(zc._txn_registered, False, "did not forget the transaction")
def commit(self): try: ZopeConnection.commit(self) except psycopg2.Error as error: _handle_psycopg_exception(error)
def commit(self): try: ZopeConnection.commit(self) except psycopg2.Error, error: _handle_psycopg_exception(error)