Преглед изворни кода

Fix Bundle resource leak in BundleClientTests

Jelmer Vernooij пре 2 недеља
родитељ
комит
10a8834835
1 измењених фајлова са 1 додато и 0 уклоњено
  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")