Explorar o código

Fix Bundle resource leak in BundleClientTests

Jelmer Vernooij hai 2 semanas
pai
achega
10a8834835
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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")