commit:     0f0056a0193abc36be61b45184b6bbc2521d525f
Author:     David Palao <david.palao <AT> gmail <DOT> com>
AuthorDate: Fri Sep 15 15:51:54 2023 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Mon Oct 30 03:14:24 2023 +0000
URL:        https://gitweb.gentoo.org/proj/portage.git/commit/?id=0f0056a0

tests/emerge: test_simple.py: _async_test_simple: Refactor

Refactor.
Removed parameter from function since it's constant.
Signed-off-by: David Palao <david.palao <AT> gmail.com>
Signed-off-by: Sam James <sam <AT> gentoo.org>

 lib/portage/tests/emerge/test_simple.py | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/lib/portage/tests/emerge/test_simple.py 
b/lib/portage/tests/emerge/test_simple.py
index b13add9122..c0731dabca 100644
--- a/lib/portage/tests/emerge/test_simple.py
+++ b/lib/portage/tests/emerge/test_simple.py
@@ -64,7 +64,6 @@ def test_portage_baseline(async_loop, playground, binhost, 
simple_command):
                 playground,
                 binhost,
                 simple_command,
-                _METADATA_XML_FILES,
                 loop=async_loop,
             ),
             loop=async_loop,
@@ -72,7 +71,7 @@ def test_portage_baseline(async_loop, playground, binhost, 
simple_command):
     )
 
 
-async def _async_test_simple(playground, binhost, command, metadata_xml_files, 
loop):
+async def _async_test_simple(playground, binhost, command, loop):
     debug = playground.debug
     settings = playground.settings
     trees = playground.trees
@@ -180,7 +179,7 @@ async def _async_test_simple(playground, binhost, command, 
metadata_xml_files, l
     # non-empty system set keeps --depclean quiet
     with open(os.path.join(profile_path, "packages"), "w") as f:
         f.write("*dev-libs/token-system-pkg")
-    for cp, xml_data in metadata_xml_files:
+    for cp, xml_data in _METADATA_XML_FILES:
         with open(os.path.join(test_repo_location, cp, "metadata.xml"), "w") 
as f:
             f.write(playground.metadata_xml_template % xml_data)
         with open(os.path.join(updates_dir, "1Q-2010"), "w") as f:

Reply via email to