Prechádzať zdrojové kódy

[core] Check Oracle client only when Oracle is installed

Romain Rigaux 11 rokov pred
rodič
commit
ceadc79133
1 zmenil súbory, kde vykonal 3 pridanie a 0 odobranie
  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.
   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:
   try:
     import cx_Oracle
     import cx_Oracle
     return
     return