File: using-python3-in-tests.patch

package info (click to toggle)
systemfixtures 0.6.4-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, sid, trixie
  • size: 324 kB
  • sloc: python: 808; makefile: 219; sh: 2
file content (16 lines) | stat: -rw-r--r-- 619 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Description: Using python3 in tests
Author: Thomas Goirand <zigo@debian.org>
Forwarded: no
Last-Update: 2019-09-14

--- systemfixtures-0.6.4.orig/systemfixtures/executable.py
+++ systemfixtures-0.6.4/systemfixtures/executable.py
@@ -22,7 +22,7 @@ class FakeExecutable(Fixture):
 
     def _setUp(self):
         self.path = self.useFixture(TempDir()).join("executable")
-        self.line("#!/usr/bin/env python")
+        self.line("#!/usr/bin/env python3")
         self.line("import logging")
         self.line("logging.basicConfig("
                       "format='%(asctime)s %(message)s', level=logging.DEBUG)")