changeset 52a45ec5b39e in modules/party_relationship:default
details: 
https://hg.tryton.org/modules/party_relationship?cmd=changeset;node=52a45ec5b39e
description:
        Skip test_party_distance for Python 3.5 with SQLite

        issue9133
        review297221005
diffstat:

 tests/test_party_relationship.py |  8 ++------
 1 files changed, 2 insertions(+), 6 deletions(-)

diffs (26 lines):

diff -r a9f8f45bdf8d -r 52a45ec5b39e tests/test_party_relationship.py
--- a/tests/test_party_relationship.py  Tue Mar 10 09:59:25 2020 +0100
+++ b/tests/test_party_relationship.py  Fri Mar 13 00:33:35 2020 +0100
@@ -1,12 +1,8 @@
 # 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 sys
 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
@@ -182,7 +178,7 @@
         self.assertEqual(RelationAll.search([]), [])
 
     @unittest.skipIf(
-        backend.name == 'sqlite' and sqlite.sqlite_version_info <= (3, 16, 12),
+        backend.name == 'sqlite' and sys.version_info < (3, 6),
         "Executing distance query prevents complete rollback")
     @with_transaction()
     def test_party_distance(self):

Reply via email to