فهرست منبع

[core] Check Oracle client only when Oracle is installed

Romain Rigaux 11 سال پیش
والد
کامیت
ceadc79
1فایلهای تغییر یافته به همراه3 افزوده شده و 0 حذف شده
  1. 3 0
      desktop/core/src/desktop/tests.py

+ 3 - 0
desktop/core/src/desktop/tests.py

@@ -633,6 +633,9 @@ def test_cx_Oracle():
   """
   Tests that cx_Oracle (external dependency) is built correctly.
   """
+  if 'ORACLE_HOME' not in os.environ and 'ORACLE_INSTANTCLIENT_HOME' not in os.environ:
+    raise SkipTest
+
   try:
     import cx_Oracle
     return