File: fix-runtests.patch

package info (click to toggle)
python-docx-template 0.20.1%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,492 kB
  • sloc: python: 1,874; makefile: 163
file content (24 lines) | stat: -rw-r--r-- 694 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
Description: Adjust Python interpreter name in the tests.
Author: Andrius Merkys <merkys@debian.org>
Forwarded: not-needed
--- a/tests/runtests.py
+++ b/tests/runtests.py
@@ -12,6 +12,6 @@
 for test in tests:
     if test not in excludes:
         print("%s ..." % test)
-        subprocess.call(["python", "./%s" % test])
+        subprocess.call(["python3", "./%s" % test])
 
 print("Done.")
--- a/tests/module_execute.py
+++ b/tests/module_execute.py
@@ -11,7 +11,7 @@
     os.unlink(OUTPUT_FILENAME)
 
 os.chdir(os.path.dirname(__file__))
-cmd = "python -m docxtpl %s %s %s %s %s" % (
+cmd = "python3 -m docxtpl %s %s %s %s %s" % (
     TEMPLATE_PATH,
     JSON_PATH,
     OUTPUT_FILENAME,