mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-04-30 16:57:29 -07:00
fixes Github: pycurl/pycurl/#273 Github: pycurl/pycurl/#274 Package-Manager: portage-2.2.23 Signed-off-by: Justin Lecher <jlec@gentoo.org>
16 lines
647 B
Diff
16 lines
647 B
Diff
tests/memory_mgmt_test.py | 4 +++-
|
|
1 file changed, 3 insertions(+), 1 deletion(-)
|
|
|
|
diff --git a/tests/memory_mgmt_test.py b/tests/memory_mgmt_test.py
|
|
index 08636ae..a7b8a21 100644
|
|
--- a/tests/memory_mgmt_test.py
|
|
+++ b/tests/memory_mgmt_test.py
|
|
@@ -258,4 +258,6 @@ class MemoryMgmtTest(unittest.TestCase):
|
|
|
|
gc.collect()
|
|
new_object_count = len(gc.get_objects())
|
|
- self.assertEqual(new_object_count, object_count)
|
|
+ # it seems that GC sometimes collects something that existed
|
|
+ # before this test ran, GH issues #273/#274
|
|
+ self.assertTrue(new_object_count in (object_count, object_count-1))
|