Jelajahi Sumber

[dekstop] Make sure test runner DB options are Python2 compatible

Romain Rigaux 4 tahun lalu
induk
melakukan
a08d1b0271
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      desktop/core/src/desktop/tests.py

+ 1 - 1
desktop/core/src/desktop/tests.py

@@ -1498,7 +1498,7 @@ def test_db_migrations_sqlite():
       'PASSWORD': '',
       'HOST': '',
       'PORT': '',
-      'OPTIONS': {},
+      'OPTIONS': {} if sys.version_info[0] > 2 else '',
       'ATOMIC_REQUESTS': True,
       'CONN_MAX_AGE': 0,
     }