aports/testing/nitrocli/src-tests-run.rs-use-python3.patch
2021-09-17 23:45:40 +00:00

34 lines
893 B
Diff

From 006679ae586ad790e391b46eb9fedf9e6f765d3c Mon Sep 17 00:00:00 2001
From: Henrik Riomar <henrik.riomar@gmail.com>
Date: Fri, 17 Sep 2021 17:58:35 +0200
Subject: [PATCH] src/tests/run.rs: use python3
---
src/tests/run.rs | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/tests/run.rs b/src/tests/run.rs
index ed1bbb8..7e69347 100644
--- a/src/tests/run.rs
+++ b/src/tests/run.rs
@@ -294,7 +294,7 @@ fn extension() -> anyhow::Result<()> {
.open(ext_dir.path().join("nitrocli-ext"))?;
ext.write_all(
- br#"#!/usr/bin/env python
+ br#"#!/usr/bin/env python3
print("success")
"#,
)?;
@@ -325,7 +325,7 @@ fn extension_failure() -> anyhow::Result<()> {
.open(ext_dir.path().join("nitrocli-ext"))?;
ext.write_all(
- br#"#!/usr/bin/env python
+ br#"#!/usr/bin/env python3
import sys
sys.exit(42);
"#,
--
2.33.0