changeset a9f8f45bdf8d in modules/party_relationship:default
details: 
https://hg.tryton.org/modules/party_relationship?cmd=changeset;node=a9f8f45bdf8d
description:
        Skip test_party_distance for SQLite <= 3.16.12

        issue9133
        review269041002
diffstat:

 tests/test_party_relationship.py |  10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)

diffs (27 lines):

diff -r d1109e268342 -r a9f8f45bdf8d tests/test_party_relationship.py
--- a/tests/test_party_relationship.py  Sat Mar 07 00:27:13 2020 +0100
+++ b/tests/test_party_relationship.py  Tue Mar 10 09:59:25 2020 +0100
@@ -1,6 +1,13 @@
 # This file is part of Tryton.  The COPYRIGHT file at the top level of
 # this repository contains the full copyright notices and license terms.
 import unittest
+
+try:
+    from pysqlite2 import dbapi2 as sqlite
+except ImportError:
+    import sqlite3 as sqlite
+
+from trytond import backend
 from trytond.tests.test_tryton import ModuleTestCase, with_transaction
 from trytond.tests.test_tryton import suite as tryton_suite
 from trytond.pool import Pool
@@ -174,6 +181,9 @@
         RelationAll.delete([reverse_relation])
         self.assertEqual(RelationAll.search([]), [])
 
+    @unittest.skipIf(
+        backend.name == 'sqlite' and sqlite.sqlite_version_info <= (3, 16, 12),
+        "Executing distance query prevents complete rollback")
     @with_transaction()
     def test_party_distance(self):
         "Test party distance"

Reply via email to