testsuite: Fix introspection test on Windows
authorChun-wei Fan <fanchunwei@src.gnome.org>
Mon, 25 Apr 2022 07:28:44 +0000 (15:28 +0800)
committerChun-wei Fan <fanchunwei@src.gnome.org>
Tue, 26 Apr 2022 03:51:26 +0000 (11:51 +0800)
commit3471c22f52a396fc04eb064eb363afa8f098cd6a
tree0b7f014915ad083af2b9d0d8192b6dc7dd5b5545
parent3af4d53945dd92b955ba1fee45d9a2957b6af8c4
testsuite: Fix introspection test on Windows

...when we are using Python 3.8.x or later.  Python 3.8.x or later on Windows
require one to call os.add_dll_directory() on every directory that contains
dependent non-system DLLs of a module that are not bundled/installed with the
module.

Since we are very likely running programs that rely on dependent items in
%PATH%, make things easier for people by calling os.add_dll_directory() on
all the valid paths in %PATH% in api.py, so that the test will run
successfully on Windows with Python 3.8.x or later.
testsuite/introspection/api.py