1
0
Fork 0
git-repo/tests
Daniel Kutik 3598279c5f Test: Fix test_subcmds_sync.py for Python <= 3.7
This change fixes the failing test_interleaved_shared_objdir_serial
in Python 3.7 and earlier.

In the test the execute_mock.call_args could return either a tuple
of arguments or a mock._Call object, depending on the Python version.
In Python 3.7 and below, a mock._Call object was returned, causing
the test to fail when directly accessing call_args.args.

By checking isinstance(call_args, mock._Call), this commit ensures
compatibility across Python versions.

Change-Id: I6790dffc40cebb7dda47b0f477a1e1586b9da239
2025-06-22 10:11:12 +02:00
..
fixtures Remove gitc support from repo 2024-12-03 22:27:56 +00:00
conftest.py tests: setup user identity for tests 2023-12-20 19:04:57 +00:00
test_color.py color: fix have_fg not re assign to true 2024-09-12 16:15:06 +00:00
test_editor.py Format codebase with black and check formatting in CQ 2023-03-22 17:46:28 +00:00
test_error.py isort: format codebase 2023-08-22 18:32:22 +00:00
test_git_command.py run_tests: move test filtering to pytest markers 2025-03-25 11:19:49 -07:00
test_git_config.py cleanup: Update codebase to expect Python 3.6 2023-10-31 16:03:54 +00:00
test_git_superproject.py run_tests: move test filtering to pytest markers 2025-03-25 11:19:49 -07:00
test_git_trace2_event_log.py Fix event log command event hierarchy. 2024-11-22 18:39:41 +00:00
test_hooks.py isort: format codebase 2023-08-22 18:32:22 +00:00
test_manifest_xml.py black: update to v25 2025-03-25 11:20:35 -07:00
test_platform_utils.py Format codebase with black and check formatting in CQ 2023-03-22 17:46:28 +00:00
test_project.py upload: Add support for setting patchset description 2024-03-04 18:50:24 +00:00
test_repo_logging.py logging: Fix log formatting with colored output 2024-07-02 06:24:31 +00:00
test_repo_trace.py Format codebase with black and check formatting in CQ 2023-03-22 17:46:28 +00:00
test_ssh.py Parse OpenSSH versions with no SSH_EXTRAVERSION 2023-05-24 17:33:08 +00:00
test_subcmds.py subcmds: delete redundant dest= settings 2025-05-27 09:26:43 -07:00
test_subcmds_forall.py Add smoke test for subcmd forall 2024-12-11 00:30:15 -08:00
test_subcmds_init.py Format codebase with black and check formatting in CQ 2023-03-22 17:46:28 +00:00
test_subcmds_manifest.py manifest: generalize --json as --format=<format> 2025-04-30 12:25:15 -07:00
test_subcmds_sync.py Test: Fix test_subcmds_sync.py for Python <= 3.7 2025-06-22 10:11:12 +02:00
test_subcmds_upload.py isort: format codebase 2023-08-22 18:32:22 +00:00
test_update_manpages.py Format codebase with black and check formatting in CQ 2023-03-22 17:46:28 +00:00
test_wrapper.py launcher: change RunError to subprocess.CalledProcessError 2025-04-01 17:28:26 -07:00