Porting libxml2 Python 3.x module to Windows (how to test libxml_PyFileGet())
Hi,
I am attempting to port the Python 3.x module C sources to Windows, where the call to fcntl(fd, F_GETFL, 0)
in libxml_PyFileGet()
needs Win32 API calls on Windows to implement the check for how the file referenced by the fd
that is obtained with PyObject_AsFileDescriptor()
is opened.
I tried to run the test scripts in tests*.py, but it does seem to me that none of those end up calling PyFile_Get()
(which equates to libxml_PyFileGet()
on Python 3.x, so I would like to know how I can get around to test this function (or, did I miss an envvar or something in the test scripts?).
Any pointers on this will be really appreciated.
With blessings, thank you!