From fcf4ffd5ba094fbc8144ef9e3893287ef4bcf7f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vykintas=20Baltru=C5=A1aitis?= Date: Wed, 29 Nov 2023 15:12:00 +0200 Subject: [PATCH] Remove unnecessary deepcopy --- test/unit/_cli/test_autocomplete_cache.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/test/unit/_cli/test_autocomplete_cache.py b/test/unit/_cli/test_autocomplete_cache.py index 817ce4d07..dacfee62b 100644 --- a/test/unit/_cli/test_autocomplete_cache.py +++ b/test/unit/_cli/test_autocomplete_cache.py @@ -10,7 +10,6 @@ from __future__ import annotations import contextlib -import copy import importlib import io import os @@ -79,7 +78,7 @@ def _get_b2api_for_profile(profile: str): def argcomplete_result(): - parser = copy.deepcopy(b2.console_tool.B2.create_parser()) + parser = b2.console_tool.B2.create_parser() exit, output = Exit(), io.StringIO() argcomplete.autocomplete(parser, exit_method=exit, output_stream=output) return exit.code, output.getvalue() @@ -93,7 +92,7 @@ def cached_complete_result(cache: autocomplete_cache.AutocompleteCache): def uncached_complete_result(cache: autocomplete_cache.AutocompleteCache): exit, output = Exit(), io.StringIO() - parser = copy.deepcopy(b2.console_tool.B2.create_parser()) + parser = b2.console_tool.B2.create_parser() cache.cache_and_autocomplete( parser, uncached_args={ 'exit_method': exit,