summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/cx-freeze/fix-tests-relative-path.patch
blob: 4fdd64676a8ca8182f9935911ff721d553fe7c9c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
diff --git a/tests/conftest.py b/tests/conftest.py
index 04400a17..1facf55d 100644
--- a/tests/conftest.py
+++ b/tests/conftest.py
@@ -46,9 +46,7 @@ class TempPackage:
         # environment
         self.system_path: Path = Path(os.getcwd())
         self.system_prefix: Path = Path(sys.prefix)
-        self.relative_site = Path(pytest.__file__).parent.parent.relative_to(
-            self.system_prefix
-        )
+        self.relative_site = Path(pytest.__file__).resolve().parent.parent
 
         # make a temporary directory and set it as current
         name = request.node.name