Skip to content

Commit 217849e

Browse files
committed
[cdd/tests/test_shared/test_pkg_utils.py] test_get_python_lib fix for windows?
1 parent 67ddad5 commit 217849e

File tree

1 file changed

+2
-16
lines changed

1 file changed

+2
-16
lines changed

cdd/tests/test_shared/test_pkg_utils.py

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
from unittest import TestCase
77

88
from cdd.shared.pkg_utils import get_python_lib, relative_filename
9-
from cdd.shared.pure_utils import rpartial, pp
9+
from cdd.shared.pure_utils import rpartial
1010
from cdd.tests.utils_for_tests import unittest_main
1111

1212

@@ -22,28 +22,14 @@ def test_get_python_lib(self) -> None:
2222
"""Tests that `get_python_lib` works"""
2323
python_lib: str = get_python_lib()
2424
site_packages: str = getsitepackages()[0]
25-
two_dirs_above: str = path.dirname(path.dirname(site_packages))
26-
pp(
27-
{
28-
"python_lib": python_lib,
29-
"two_dirs_above": two_dirs_above,
30-
"site_packages": site_packages,
31-
'path.join(two_dir_above, "Lib", "site-packages")': path.join(
32-
two_dirs_above, "Lib", "site-packages"
33-
),
34-
'path.join(two_dir_above, "python3", "dist-packages")': path.join(
35-
two_dirs_above, "python3", "dist-packages"
36-
),
37-
}
38-
)
3925
site_packages: str = next(
4026
filter(
4127
rpartial(eq, python_lib),
4228
(
4329
lambda two_dir_above: (
4430
site_packages,
4531
two_dir_above,
46-
path.join(two_dir_above, "Lib", "site-packages"),
32+
path.join(site_packages, "Lib", "site-packages"),
4733
path.join(two_dir_above, "python3", "dist-packages"),
4834
)
4935
)(path.dirname(path.dirname(site_packages))),

0 commit comments

Comments
 (0)