Przeglądaj źródła

Fix Bundle resource leak in BundleClientTests

Jelmer Vernooij 2 tygodni temu
rodzic
commit
10a8834835
1 zmienionych plików z 1 dodań i 0 usunięć
  1. 1 0
      tests/test_client.py

+ 1 - 0
tests/test_client.py

@@ -1386,6 +1386,7 @@ class BundleClientTests(TestCase):
 
         # Create bundle
         bundle = create_bundle_from_repo(repo)
+        self.addCleanup(bundle.close)
 
         # Write bundle to file
         bundle_path = os.path.join(self.tempdir, "test.bundle")