1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-08-02 04:21:55 +03:00

python: Fix tests on MinGW

Add the directory containing libxml2.dll with os.add_dll_directory to
make tests work on MinGW.

This has changed in Python 3.8 but for some reason, the issue only
turned up with Python 3.11 on MinGW. Contrary to documentation, copying
libxml2.dll into the directory containing the .pyd file doesn't work.
This commit is contained in:
Nick Wellnhofer
2023-08-15 12:49:27 +02:00
parent e2ab48b9b5
commit 138213acdf
49 changed files with 57 additions and 3 deletions

View File

@ -3,6 +3,7 @@
# this tests the entities substitutions with the XmlTextReader interface
#
import sys
import setup_test
import libxml2
try:
import StringIO