File: 0001-Don-t-use-relative-paths-in-testsuite.patch

package info (click to toggle)
python-pypushflow 0.7.0-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 544 kB
  • sloc: python: 3,368; makefile: 2
file content (39 lines) | stat: -rw-r--r-- 1,445 bytes parent folder | download | duplicates (2)
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
27
28
29
30
31
32
33
34
35
36
37
38
39
From: Roland Mas <roland.mas@entierement.net>
Date: Tue, 10 Dec 2024 13:05:48 +0100
Subject: Don't use relative paths in testsuite

---
 src/pypushflow/tests/concurrent/test_interrupt.py | 2 +-
 src/pypushflow/tests/concurrent/utils.py          | 6 +++---
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/pypushflow/tests/concurrent/test_interrupt.py b/src/pypushflow/tests/concurrent/test_interrupt.py
index e93d5cd..3206d14 100644
--- a/src/pypushflow/tests/concurrent/test_interrupt.py
+++ b/src/pypushflow/tests/concurrent/test_interrupt.py
@@ -3,7 +3,7 @@ import time
 from numbers import Number
 import pytest
 from . import utils
-from ...concurrent.interrupt import StopPypushflowTask
+from pypushflow.concurrent.interrupt import StopPypushflowTask
 
 
 def create_file(sleep_time: Number, filename: str) -> str:
diff --git a/src/pypushflow/tests/concurrent/utils.py b/src/pypushflow/tests/concurrent/utils.py
index effa7ce..ba31859 100644
--- a/src/pypushflow/tests/concurrent/utils.py
+++ b/src/pypushflow/tests/concurrent/utils.py
@@ -16,9 +16,9 @@ except ImportError:
     BPool = None
     BProcess = None
 
-from ...concurrent import get_pool
-from ...concurrent import exceptions
-from ...concurrent.factory import _POOLS
+from pypushflow.concurrent import get_pool
+from pypushflow.concurrent import exceptions
+from pypushflow.concurrent.factory import _POOLS
 
 
 CONTEXTS = [None] + get_all_start_methods()