summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2012-10-17 14:44:03 +0200
committerMichael Vogt <michael.vogt@ubuntu.com>2012-10-17 14:44:03 +0200
commit870bf6095484206655f58753a12430da4569645c (patch)
tree3a4789bed9aa7b7b4e53c0738d66f4bfdee56e8e
parentf4f89cd0080e9ee8632b42a575393ce0b7dbb987 (diff)
downloadpython-apt-870bf6095484206655f58753a12430da4569645c.tar.gz
tests/test_apt_cache.py: delete test_cache_delete_leasks_fds() as its not reliable
-rw-r--r--tests/test_apt_cache.py10
1 files changed, 0 insertions, 10 deletions
diff --git a/tests/test_apt_cache.py b/tests/test_apt_cache.py
index 22c4e871..7e2ead2d 100644
--- a/tests/test_apt_cache.py
+++ b/tests/test_apt_cache.py
@@ -108,16 +108,6 @@ class TestAptCache(TestCase):
self.assertEqual(fds_before_open, fds_after_open_twice)
@if_sources_list_is_readable
- def test_cache_delete_leasks_fds(self):
- fds_before_open = get_open_file_descriptors()
- cache = apt.Cache()
- del cache
- import gc
- gc.collect()
- fds_after_delete = get_open_file_descriptors()
- self.assertEqual(fds_before_open, fds_after_delete)
-
- @if_sources_list_is_readable
def test_cache_close_download_fails(self):
cache = apt.Cache()
self.assertEqual(cache.required_download, 0)