Procházet zdrojové kódy

Fix Bundle resource leak in BundleClientTests

Jelmer Vernooij před 2 týdny
rodič
revize
10a8834835
1 změnil soubory, kde provedl 1 přidání a 0 odebrání
  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")