Package: python-psutil / 5.5.1-1

0002-pass-PYTHONPATH-to-the-test-runner.patch Patch series | 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
27
28
29
From: Sandro Tosi <morph@debian.org>
Date: Sun, 10 Apr 2016 13:17:47 +0100
Subject: pass PYTHONPATH to the test runner

---
 Makefile | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index 136999f..01cf412 100644
--- a/Makefile
+++ b/Makefile
@@ -3,6 +3,7 @@
 # You can set the variables below from the command line.
 
 PYTHON = python
+PYTHONPATH = .
 TSCRIPT = psutil/tests/__main__.py
 ARGS =
 # List of nice-to-have dev libs.
@@ -26,7 +27,7 @@ DEPS = \
 
 # In not in a virtualenv, add --user options for install commands.
 INSTALL_OPTS = `$(PYTHON) -c "import sys; print('' if hasattr(sys, 'real_prefix') else '--user')"`
-TEST_PREFIX = PYTHONWARNINGS=all PSUTIL_TESTING=1 PSUTIL_DEBUG=1
+TEST_PREFIX = PYTHONWARNINGS=all PSUTIL_TESTING=1 PSUTIL_DEBUG=1 PYTHONPATH=$(PYTHONPATH)
 
 all: test