File: py3k-tests.patch

package info (click to toggle)
python-argcomplete 3.6.3-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 704 kB
  • sloc: python: 2,814; makefile: 50; sh: 7
file content (35 lines) | stat: -rw-r--r-- 1,144 bytes parent folder | 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
30
31
32
33
34
35
From: Debian Python Team <team+python@tracker.debian.org>
Date: Sat, 4 Nov 2023 10:34:21 +0200
Subject: Use the python3 binary to execute tests

Upstream runs the tests inside tox, which has a python binary available.
We don't currently use this, because their tox config isn't shipped in
their source tarball.

Forwarded: not-needed

--- a/test/prog
+++ b/test/prog
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 # PYTHON_ARGCOMPLETE_OK
 """Test script used by test.TestBash."""
 
--- a/test/test.py
+++ b/test/test.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 import argparse
 import contextlib
 import os
@@ -1383,7 +1383,7 @@
             self.sh.run_command("export PATH=$PATH:./bin")
             self.sh.run_command("export PYTHONPATH=.:$PYTHONPATH")
             test_package = os.path.join(TEST_DIR, "test_package")
-            command = "pip install {} --target .".format(test_package)
+            command = "pip3 install {} --target .".format(test_package)
             if not wheel:
                 command += " --no-binary :all:"
             install_output = self.sh.run_command(command)