Skip to content

Commit 9deaa3f

Browse files
committed
One more set of fix
1 parent 0ff4d95 commit 9deaa3f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

clang/bindings/python/tests/cindex/test_environment_variable.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,10 @@ def test_working_libclang_library_path(self):
4949
reset_import_and_get_frech_config().lib
5050

5151
@unittest.mock.patch.dict("os.environ", {"LIBCLANG_LIBRARY_PATH": "not_a_real_dir"})
52-
def _test_non_working_libclang_library_path(self):
52+
def test_non_working_libclang_library_path(self):
53+
# Remove LIBCLANG_LIBRARY_FILE to avoid it taking precedence if set by the user
54+
os.environ.pop("LIBCLANG_LIBRARY_FILE", None)
55+
5356
config = reset_import_and_get_frech_config()
5457
import clang.cindex
5558

0 commit comments

Comments
 (0)