File fix-gitfs-test-failures-due-uncomplete-cleanup.patch of Package salt

From 7bf5d07ffc9ab0e7cebfb948f06ecf4d427eafd9 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Pablo=20Su=C3=A1rez=20Hern=C3=A1ndez?=
 <psuarezhernandez@suse.com>
Date: Tue, 17 Jun 2025 15:57:24 +0100
Subject: [PATCH] Fix gitfs test failures due uncomplete cleanup

---
 tests/unit/utils/test_gitfs.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tests/unit/utils/test_gitfs.py b/tests/unit/utils/test_gitfs.py
index 259ea056fcd..6e99a219ca3 100644
--- a/tests/unit/utils/test_gitfs.py
+++ b/tests/unit/utils/test_gitfs.py
@@ -95,6 +95,7 @@ class TestGitBase(TestCase, AdaptedConfigurationTestCaseMixin):
             remote.fetched = False
         del self.main_class
         self._tmp_dir.cleanup()
+        _clear_instance_map()
 
     def test_update_all(self):
         self.main_class.update()
-- 
2.49.0

openSUSE Build Service is sponsored by