[issue40214] test_ctypes.test_load_dll_with_flags Windows failure

Eryk Sun report at bugs.python.org
Tue Apr 7 11:42:56 EDT 2020


Eryk Sun <eryksun at gmail.com> added the comment:

> Maybe something else was installed that put an incompatible 
> _sqlite3.dll on PATH? Thereby proving the inherent risk of 
> using unsafe DLL load settings 

should_pass() sets the working directory of the test process to the `tmp` directory. The loader normally checks the working directory before PATH. But maybe the system itself is configured to disallow loading DLLs from the working directory. There's a registry setting for that, but it's little known and rarely used because it's disruptive in general.

----------
nosy: +eryksun

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue40214>
_______________________________________


More information about the Python-bugs-list mailing list