Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-subprocess-tee for openSUSE:Factory checked in at 2023-05-10 16:19:13 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-subprocess-tee (Old) and /work/SRC/openSUSE:Factory/.python-subprocess-tee.new.1533 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-subprocess-tee" Wed May 10 16:19:13 2023 rev:8 rq:1085862 version:0.4.1 Changes: -------- --- /work/SRC/openSUSE:Factory/python-subprocess-tee/python-subprocess-tee.changes 2023-05-05 17:33:23.878271463 +0200 +++ /work/SRC/openSUSE:Factory/.python-subprocess-tee.new.1533/python-subprocess-tee.changes 2023-05-10 16:19:13.675224372 +0200 @@ -1,0 +2,8 @@ +Fri May 5 18:13:11 UTC 2023 - Johannes Kastl <ka...@b1-systems.de> + +- add patch + 0001-test-test_unit.py-do-not-use-python3-rather-use-sys..patch + to replace hardcoded python3 executable name + (see https://github.com/pycontribs/subprocess-tee/pull/107) + +------------------------------------------------------------------- New: ---- 0001-test-test_unit.py-do-not-use-python3-rather-use-sys..patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-subprocess-tee.spec ++++++ --- /var/tmp/diff_new_pack.MlmaVh/_old 2023-05-10 16:19:14.151227188 +0200 +++ /var/tmp/diff_new_pack.MlmaVh/_new 2023-05-10 16:19:14.163227259 +0200 @@ -24,6 +24,7 @@ License: MIT URL: https://github.com/pycontribs/subprocess-tee Source: https://files.pythonhosted.org/packages/source/s/subprocess-tee/subprocess-tee-%{version}.tar.gz +Patch1: 0001-test-test_unit.py-do-not-use-python3-rather-use-sys..patch BuildRequires: %{python_module pip} BuildRequires: %{python_module pytest} BuildRequires: %{python_module rich} @@ -50,6 +51,7 @@ %prep %setup -q -n subprocess-tee-%{version} +%patch1 -p1 %build %pyproject_wheel ++++++ 0001-test-test_unit.py-do-not-use-python3-rather-use-sys..patch ++++++ >From 8dcde7134573acb506c7f34746573cbaeccf9b4d Mon Sep 17 00:00:00 2001 From: Johannes Kastl <ka...@b1-systems.de> Date: Fri, 5 May 2023 20:11:37 +0200 Subject: [PATCH] test/test_unit.py: do not use python3, rather use sys.executable to use the same python version this test is running with Signed-off-by: Johannes Kastl <ka...@b1-systems.de> --- test/test_unit.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/test_unit.py b/test/test_unit.py index 1dd4d2f..652fce9 100644 --- a/test/test_unit.py +++ b/test/test_unit.py @@ -1,5 +1,6 @@ """Unittests.""" import subprocess +import sys from typing import Dict import pytest @@ -30,7 +31,7 @@ def test_run_list() -> None: # NOTICE: subprocess.run() does fail to capture any output when cmd is # a list and you specific shell=True. Still, when not mentioning shell, # it does work. - cmd = ["python3", "--version"] + cmd = [sys.executable, "--version"] old_result = subprocess.run( cmd, # shell=True, @@ -47,7 +48,7 @@ def test_run_list() -> None: def test_run_echo(capsys: CaptureFixture[str]) -> None: """Validate run call with echo dumps command.""" - cmd = ["python3", "--version"] + cmd = [sys.executable, "--version"] old_result = subprocess.run( cmd, # shell=True, -- 2.40.1