1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
|
From: Julian Gilbey <jdg@debian.org>
Date: Tue, 28 Oct 2025 12:16:57 -0700
Subject: Handle Debian's purelib setting
Forwarded: not-needed
Last-Update: 2024-06-30
The Debian value of sysconfig.get_path('purelib') contains "dist-packages"
rather than "site-packages".
---
tests_python/test_convert_utilities.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests_python/test_convert_utilities.py b/tests_python/test_convert_utilities.py
index fd640ab..69ed7b0 100644
--- a/tests_python/test_convert_utilities.py
+++ b/tests_python/test_convert_utilities.py
@@ -369,7 +369,7 @@ def test_relative_paths(tmpdir):
pydevd_file_utils.NORM_PATHS_AND_BASE_CONTAINER.clear()
pydevd_file_utils.NORM_PATHS_CONTAINER.clear()
abs_path = pydevd_file_utils.get_abs_path_real_path_and_base_from_file("my_dir/my_file.pyx")[0]
- assert "site-packages" in abs_path
+ assert "site-packages" in abs_path or "dist-packages" in abs_path
assert os.path.normcase(str(tmpdir)) not in abs_path
assert not pydevd_file_utils.exists("my_dir/my_file.pyx")
|