This commit is contained in:
Kovid Goyal 2024-10-09 20:35:44 +05:30
parent 27041e4351
commit 3792654953
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -54,8 +54,7 @@ class Test(BaseTest):
import warnings
warnings.filterwarnings('ignore', message="'cgi' is deprecated and slated for removal in Python 3.13")
if is_ci:
SW = os.environ['SW']
if is_ci and (SW := os.environ.get('SW')):
if ismacos:
import ctypes
sys.libxml2_dylib = ctypes.CDLL(os.path.join(SW, 'lib', 'libxml2.dylib'))