File: test_convert_utilities.patch

package info (click to toggle)
pydevd 3.4.1%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 13,892 kB
  • sloc: python: 77,580; cpp: 1,873; sh: 374; makefile: 50; ansic: 4
file content (26 lines) | stat: -rw-r--r-- 1,111 bytes parent folder | download
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")