瀏覽代碼

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

Romain Rigaux 4 年之前
父節點
當前提交
a08d1b0271
共有 1 個文件被更改,包括 1 次插入1 次删除
  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,
     }