Compare commits
	
		
			2 Commits
		
	
	
		
	
	| Author | SHA256 | Date | |
|---|---|---|---|
| 7826055057 | |||
| 790b281c4e | 
| @@ -1,43 +0,0 @@ | ||||
| From 8dcde7134573acb506c7f34746573cbaeccf9b4d Mon Sep 17 00:00:00 2001 | ||||
| From: Johannes Kastl <kastl@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 <kastl@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 | ||||
|  | ||||
| @@ -1,3 +1,11 @@ | ||||
| ------------------------------------------------------------------- | ||||
| Sat Mar 29 09:49:40 UTC 2025 - Dirk Müller <dmueller@suse.com> | ||||
|  | ||||
| - update to 0.4.2: | ||||
|   * Use exec mode when passed a list of strings (#101) | ||||
| - drop 0001-test-test_unit.py-do-not-use-python3-rather-use-sys..patch: | ||||
|   merged upstream | ||||
|  | ||||
| ------------------------------------------------------------------- | ||||
| Thu May 16 15:09:42 UTC 2024 - Dominique Leuenberger <dimstar@opensuse.org> | ||||
|  | ||||
|   | ||||
| @@ -1,7 +1,7 @@ | ||||
| # | ||||
| # spec file for package python-subprocess-tee | ||||
| # | ||||
| # Copyright (c) 2024 SUSE LLC | ||||
| # Copyright (c) 2025 SUSE LLC | ||||
| # | ||||
| # All modifications and additions to the file contributed by third parties | ||||
| # remain the property of their copyright owners, unless otherwise agreed | ||||
| @@ -18,13 +18,12 @@ | ||||
|  | ||||
| %{?sle15_python_module_pythons} | ||||
| Name:           python-subprocess-tee | ||||
| Version:        0.4.1 | ||||
| Version:        0.4.2 | ||||
| Release:        0 | ||||
| Summary:        Captures the output of subprocesses in real-time | ||||
| 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 | ||||
| Source:         https://files.pythonhosted.org/packages/source/s/subprocess-tee/subprocess_tee-%{version}.tar.gz | ||||
| BuildRequires:  %{python_module pip} | ||||
| BuildRequires:  %{python_module pytest} | ||||
| BuildRequires:  %{python_module rich} | ||||
| @@ -49,7 +48,7 @@ any tool that executes long-running child processes. For those, you do want | ||||
| to provide instant feedback (progress) related to what is happening. | ||||
|  | ||||
| %prep | ||||
| %autosetup -p1 -n subprocess-tee-%{version} | ||||
| %autosetup -p1 -n subprocess_tee-%{version} | ||||
|  | ||||
| %build | ||||
| %pyproject_wheel | ||||
|   | ||||
							
								
								
									
										
											BIN
										
									
								
								subprocess-tee-0.4.1.tar.gz
									 (Stored with Git LFS)
									
									
									
									
								
							
							
						
						
									
										
											BIN
										
									
								
								subprocess-tee-0.4.1.tar.gz
									 (Stored with Git LFS)
									
									
									
									
								
							
										
											Binary file not shown.
										
									
								
							
							
								
								
									
										
											BIN
										
									
								
								subprocess_tee-0.4.2.tar.gz
									 (Stored with Git LFS)
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								subprocess_tee-0.4.2.tar.gz
									 (Stored with Git LFS)
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							
		Reference in New Issue
	
	Block a user