This is an automated email from the ASF dual-hosted git repository.

janhoy pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/solr-orbit.git


The following commit(s) were added to refs/heads/main by this push:
     new dab0165d Fix launcher test failure: give MockPopen an args attribute 
(#71)
dab0165d is described below

commit dab0165d5a95421d7ce8193e3b9be88ce2c9048c
Author: Jan Høydahl <[email protected]>
AuthorDate: Wed Sep 2 22:15:01 2026 +0200

    Fix launcher test failure: give MockPopen an args attribute (#71)
---
 tests/builder/launcher_test.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tests/builder/launcher_test.py b/tests/builder/launcher_test.py
index ff9444b2..f4b99390 100644
--- a/tests/builder/launcher_test.py
+++ b/tests/builder/launcher_test.py
@@ -114,6 +114,8 @@ class MockPopen:
         # mocking them as their optional functionality is disabled.
         self.returncode = 1
         self.stdout = io.StringIO()
+        # subprocess.run() reads this when it builds the CompletedProcess it 
returns.
+        self.args = args[0] if args else kwargs.get("args")
 
     def communicate(self, input=None, timeout=None):
         return [b"", b""]

Reply via email to