From 8d13863ff481cea27efea5e56c9e4d352cdb8f80 Mon Sep 17 00:00:00 2001 From: Qiming Sun Date: Thu, 25 Jan 2024 00:44:45 -0800 Subject: [PATCH] Remove the RTLD_GLOBAL mode in tests --- testsuite/test_3c2e.py | 3 +-- testsuite/test_cart2sph.py | 3 +-- testsuite/test_cint.py | 3 +-- testsuite/test_int1e_grids.py | 3 +-- testsuite/test_int2e_f12_etc.py | 3 +-- testsuite/test_int3c2e.py | 3 +-- 6 files changed, 6 insertions(+), 12 deletions(-) diff --git a/testsuite/test_3c2e.py b/testsuite/test_3c2e.py index 24d30f5a..3a3c31de 100644 --- a/testsuite/test_3c2e.py +++ b/testsuite/test_3c2e.py @@ -13,8 +13,7 @@ import ctypes import numpy -_cint = ctypes.CDLL(os.path.abspath(os.path.join(__file__, '../../build/libcint.so')), - mode=os.RTLD_GLOBAL|os.RTLD_NOW) +_cint = ctypes.CDLL(os.path.abspath(os.path.join(__file__, '../../build/libcint.so'))) PTR_LIGHT_SPEED = 0 PTR_COMMON_ORIG = 1 diff --git a/testsuite/test_cart2sph.py b/testsuite/test_cart2sph.py index ec0de6e5..df61f2a9 100644 --- a/testsuite/test_cart2sph.py +++ b/testsuite/test_cart2sph.py @@ -10,8 +10,7 @@ sys.path.insert(0, os.path.abspath(os.path.join(__file__, '../../scripts'))) import cart2sph -_cint = ctypes.CDLL(os.path.abspath(os.path.join(__file__, '../../build/libcint.so')), - mode=os.RTLD_GLOBAL|os.RTLD_NOW) +_cint = ctypes.CDLL(os.path.abspath(os.path.join(__file__, '../../build/libcint.so'))) pauli = np.array([[[0., 1.], [1., 0.]], # x diff --git a/testsuite/test_cint.py b/testsuite/test_cint.py index 8e2d0f9d..e93dc051 100644 --- a/testsuite/test_cint.py +++ b/testsuite/test_cint.py @@ -13,8 +13,7 @@ import ctypes import numpy -_cint = ctypes.CDLL(os.path.abspath(os.path.join(__file__, '../../build/libcint.so')), - mode=os.RTLD_GLOBAL|os.RTLD_NOW) +_cint = ctypes.CDLL(os.path.abspath(os.path.join(__file__, '../../build/libcint.so'))) PTR_EXPCUTOFF = 0 diff --git a/testsuite/test_int1e_grids.py b/testsuite/test_int1e_grids.py index ffdbc06c..55b590a7 100644 --- a/testsuite/test_int1e_grids.py +++ b/testsuite/test_int1e_grids.py @@ -13,8 +13,7 @@ import ctypes import numpy -_cint = ctypes.CDLL(os.path.abspath(os.path.join(__file__, '../../build/libcint.so')), - mode=os.RTLD_GLOBAL|os.RTLD_NOW) +_cint = ctypes.CDLL(os.path.abspath(os.path.join(__file__, '../../build/libcint.so'))) PTR_EXPCUTOFF = 0 PTR_COMMON_ORIG = 1 diff --git a/testsuite/test_int2e_f12_etc.py b/testsuite/test_int2e_f12_etc.py index b4f89367..4fe1034c 100644 --- a/testsuite/test_int2e_f12_etc.py +++ b/testsuite/test_int2e_f12_etc.py @@ -3,8 +3,7 @@ import ctypes import numpy -_cint = ctypes.CDLL(os.path.abspath(os.path.join(__file__, '../../build/libcint.so')), - mode=os.RTLD_GLOBAL|os.RTLD_NOW) +_cint = ctypes.CDLL(os.path.abspath(os.path.join(__file__, '../../build/libcint.so'))) from pyscf import gto, lib diff --git a/testsuite/test_int3c2e.py b/testsuite/test_int3c2e.py index 4e312ce9..38feb6c5 100644 --- a/testsuite/test_int3c2e.py +++ b/testsuite/test_int3c2e.py @@ -3,8 +3,7 @@ import ctypes import numpy -_cint = ctypes.CDLL(os.path.abspath(os.path.join(__file__, '../../build/libcint.so')), - mode=os.RTLD_GLOBAL|os.RTLD_NOW) +_cint = ctypes.CDLL(os.path.abspath(os.path.join(__file__, '../../build/libcint.so'))) from pyscf import gto, lib