Explorar o código

[core] Check Oracle client only when Oracle is installed

Romain Rigaux %!s(int64=11) %!d(string=hai) anos
pai
achega
ceadc79
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  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