File: python-is-python3.patch

package info (click to toggle)
pytest-console-scripts 1.4.1-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 244 kB
  • sloc: python: 812; makefile: 2
file content (16 lines) | stat: -rw-r--r-- 499 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Description: Python executable is called python3 on Debian
Forwarded: not-needed
Author: Julian Gilbey <jdg@debian.org>
Last-Update: 2024-03-27

--- a/tests/test_run_scripts.py
+++ b/tests/test_run_scripts.py
@@ -27,7 +27,7 @@
 def console_script(tmp_path: Path) -> Path:
     """Python script to use in tests."""
     script = tmp_path / 'script.py'
-    script.write_text('#!/usr/bin/env python\nprint("foo")')
+    script.write_text('#!/usr/bin/env python3\nprint("foo")')
     return script