File: Fix-standard-test-path.patch

package info (click to toggle)
asdf-standard 1.3.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,412 kB
  • sloc: python: 1,225; makefile: 16
file content (23 lines) | stat: -rw-r--r-- 576 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
From: Ole Streicher <olebole@debian.org>
Date: Fri, 25 Feb 2022 12:47:39 +0100
Subject: Fix standard test path

---
 tests/common.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/tests/common.py b/tests/common.py
index ea74949..68b129c 100644
--- a/tests/common.py
+++ b/tests/common.py
@@ -5,7 +5,9 @@ from urllib.parse import urljoin
 import yaml
 from packaging.version import Version
 
-ROOT_PATH = Path(__file__).parent.parent
+import asdf_standard
+
+ROOT_PATH = Path(asdf_standard.__file__).parent
 
 RESOURCES_PATH = ROOT_PATH / "resources"