File: 0002-Run-autopkgtest-docformatter-under-the-same-Python-v.patch

package info (click to toggle)
python-docformatter 1.7.7-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,156 kB
  • sloc: python: 6,180; makefile: 28; sh: 7
file content (23 lines) | stat: -rw-r--r-- 681 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
From: Stefano Rivera <stefanor@debian.org>
Date: Mon, 3 Feb 2025 18:01:36 -0400
Subject: Run autopkgtest docformatter under the same Python version

Use the same python executable that the test suite is running under.

Forwarded: not-needed
---
 tests/conftest.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tests/conftest.py b/tests/conftest.py
index 762d246..8cfb1e5 100644
--- a/tests/conftest.py
+++ b/tests/conftest.py
@@ -114,6 +114,7 @@ def run_docformatter(arguments, temporary_file):
         ]
     else:
         DOCFORMATTER_COMMAND = [
+            sys.executable,
             os.environ["VIRTUAL_ENV"] + "/bin/docformatter",
         ]  # pragma: no cover